From fb388a2557b6b1cdaadb80480a1c9074d8ea46ff Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Wed, 2 Apr 2014 22:15:59 +0200 Subject: [PATCH] Albums -> Album --- php/access/admin.php | 4 ++-- php/access/guest.php | 2 +- php/modules/{Albums.php => Album.php} | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename php/modules/{Albums.php => Album.php} (99%) diff --git a/php/access/admin.php b/php/access/admin.php index 2d96dac..cfd9708 100644 --- a/php/access/admin.php +++ b/php/access/admin.php @@ -13,7 +13,7 @@ switch ($_POST['function']) { // 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)); break; @@ -21,7 +21,7 @@ switch ($_POST['function']) { echo json_encode(getAlbum($_POST['albumID'])); break; - case 'addAlbum': $album = new Albums($database, $plugins, $settings, null); + case 'addAlbum': $album = new Album($database, $plugins, $settings, null); echo $album->add($_POST['title']); break; diff --git a/php/access/guest.php b/php/access/guest.php index 130ac27..5fab9c8 100644 --- a/php/access/guest.php +++ b/php/access/guest.php @@ -13,7 +13,7 @@ switch ($_POST['function']) { // 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)); break; diff --git a/php/modules/Albums.php b/php/modules/Album.php similarity index 99% rename from php/modules/Albums.php rename to php/modules/Album.php index 0e611a7..d7dd5d3 100644 --- a/php/modules/Albums.php +++ b/php/modules/Album.php @@ -8,7 +8,7 @@ if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!'); -class Albums { +class Album { private $database = null; private $plugins = null;