Albums -> Album
This commit is contained in:
parent
ab9b1ee011
commit
fb388a2557
@ -13,7 +13,7 @@ switch ($_POST['function']) {
|
|||||||
|
|
||||||
// Album Functions
|
// Album Functions
|
||||||
|
|
||||||
case 'getAlbums': $album = new Albums($database, $plugins, $settings, null);
|
case 'getAlbums': $album = new Album($database, $plugins, $settings, null);
|
||||||
echo json_encode($album->getAll(false));
|
echo json_encode($album->getAll(false));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -21,7 +21,7 @@ switch ($_POST['function']) {
|
|||||||
echo json_encode(getAlbum($_POST['albumID']));
|
echo json_encode(getAlbum($_POST['albumID']));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'addAlbum': $album = new Albums($database, $plugins, $settings, null);
|
case 'addAlbum': $album = new Album($database, $plugins, $settings, null);
|
||||||
echo $album->add($_POST['title']);
|
echo $album->add($_POST['title']);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ switch ($_POST['function']) {
|
|||||||
|
|
||||||
// Album Functions
|
// Album Functions
|
||||||
|
|
||||||
case 'getAlbums': $album = new Albums($database, $plugins, $settings, null);
|
case 'getAlbums': $album = new Album($database, $plugins, $settings, null);
|
||||||
echo json_encode($album->getAll(true));
|
echo json_encode($album->getAll(true));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!');
|
if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!');
|
||||||
|
|
||||||
class Albums {
|
class Album {
|
||||||
|
|
||||||
private $database = null;
|
private $database = null;
|
||||||
private $plugins = null;
|
private $plugins = null;
|
Loading…
Reference in New Issue
Block a user