|
@@ -6,7 +6,7 @@ ApplicationSettings::RegisterDefaultSetting("images", "thumbnail_height", "360")
|
|
|
if (!file_exists(ApplicationSettings::GetSetting("images", "upload_location")))
|
|
|
mkdir(ApplicationSettings::GetSetting("images", "upload_location"));
|
|
|
|
|
|
-class Image extends DBObjectAutoCreate {
|
|
|
+class Image extends DBObject {
|
|
|
public $Path,$ThumbnailPath;
|
|
|
private $Filename,$TempFile;
|
|
|
|
|
@@ -31,7 +31,6 @@ class Image extends DBObjectAutoCreate {
|
|
|
}
|
|
|
|
|
|
public static function GetImagesByAlbum($albumId) {
|
|
|
- self::CreateTable("images");
|
|
|
$images=array();
|
|
|
$prep=self::$PDO->prepare("SELECT image_id FROM images WHERE album_id=? AND image_deleted=0");
|
|
|
$prep->execute(array($albumId));
|