Browse Source

Albums -> Album

Tobias Reich 11 years ago
parent
commit
fb388a2557
3 changed files with 4 additions and 4 deletions
  1. 2 2
      php/access/admin.php
  2. 1 1
      php/access/guest.php
  3. 1 1
      php/modules/Album.php

+ 2 - 2
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;
 

+ 1 - 1
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;
 

+ 1 - 1
php/modules/Albums.php → 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;