Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorBartek Przybylski <bart.p.pl@gmail.com>2011-10-02 00:36:01 +0400
committerBartek Przybylski <bart.p.pl@gmail.com>2011-10-02 00:36:01 +0400
commit339d417420ae139d586e3409dc3b03bb65df48fa (patch)
treeecffed363a76a81cf3c1e49002d9233e98a72bfd /apps
parent83e7f9d54a7275d88880419e7a3f36b1d39cdc14 (diff)
removing add new album button, removing logs, and unused code
Diffstat (limited to 'apps')
-rw-r--r--apps/gallery/ajax/thumbnail.php1
-rw-r--r--apps/gallery/lib_scanner.php2
-rw-r--r--apps/gallery/templates/index.php2
3 files changed, 1 insertions, 4 deletions
diff --git a/apps/gallery/ajax/thumbnail.php b/apps/gallery/ajax/thumbnail.php
index c8b9ee3ef3e..b3501ab4af4 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 8f7c49b671a..5d88a08158a 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 fc92479e3bf..97869907557 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">