diff --git a/.htaccess b/.htaccess index 181248267559e377dbac74e01b395cbc215558f6..34c8a2345149c044a9badadeaf8a2e005e084463 100644 --- a/.htaccess +++ b/.htaccess @@ -2,6 +2,7 @@ ErrorDocument 404 //owncloud/core/templates/404.php <IfModule mod_php5.c> php_value upload_max_filesize 512M php_value post_max_size 512M + php_value memory_limit 128M SetEnv htaccessWorking true </IfModule> Options -Indexes diff --git a/apps/gallery/ajax/thumbnail.php b/apps/gallery/ajax/thumbnail.php index c8b9ee3ef3e0158e06aa6f33738a881e95822f4f..b3501ab4af41fde46e271535dd40750c3f0e3ced 100644 --- a/apps/gallery/ajax/thumbnail.php +++ b/apps/gallery/ajax/thumbnail.php @@ -49,7 +49,6 @@ $box_size = 200; $img = $_GET['img']; $tmp = OC::$CONFIG_DATADIRECTORY . $img; -$imagesize = getimagesize($tmp); header('Content-Type: image/png'); $image = CroppedThumbnail($tmp, $box_size, $box_size); diff --git a/apps/gallery/lib_scanner.php b/apps/gallery/lib_scanner.php index 8f7c49b671a82c4d9a670d56e43634f5bb8502c7..5d88a08158a92d269293f511341ff5d82627469d 100644 --- a/apps/gallery/lib_scanner.php +++ b/apps/gallery/lib_scanner.php @@ -39,8 +39,6 @@ class OC_GALLERY_SCANNER { $albumId = $result->fetchRow(); $albumId = $albumId['album_id']; foreach ($current_album['images'] as $img) { - error_log($img); - error_log($albumId); $stmt = OC_DB::prepare('SELECT * FROM *PREFIX*gallery_photos WHERE "album_id" = ? AND "file_path" = ?'); $result = $stmt->execute(array($albumId, $img)); if ($result->numRows() == 0) { diff --git a/apps/gallery/templates/index.php b/apps/gallery/templates/index.php index fc92479e3bfe2195d2ddb93ba89d08f4387f4724..97869907557954a41a37a18ac447f6bb85214b59 100644 --- a/apps/gallery/templates/index.php +++ b/apps/gallery/templates/index.php @@ -5,7 +5,7 @@ OC_Util::addScript('gallery', 'album_cover'); ?> <div id="controls"> - <input type="button" value="New album" onclick="javascript:createNewAlbum();" /> + <!-- <input type="button" value="New album" onclick="javascript:createNewAlbum();" />--> <input type="button" value="Rescan" onclick="javascript:scanForAlbums();" /><br/> </div> <div id="gallery_list">