aboutsummaryrefslogtreecommitdiff
path: root/pages/photos/image/thumbnail.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-12-11 21:13:20 -0500
committercash <cash.costello@gmail.com>2011-12-11 21:13:20 -0500
commit175bcd1e19e8094a0096dbe678e5f7748b664a89 (patch)
treea951a9639b4e245b24a529768781fccd47aaa407 /pages/photos/image/thumbnail.php
parentbe3479085d475428a213868e13e8504e924e32ba (diff)
downloadelgg-175bcd1e19e8094a0096dbe678e5f7748b664a89.tar.gz
elgg-175bcd1e19e8094a0096dbe678e5f7748b664a89.tar.bz2
added lightbox to single images
Diffstat (limited to 'pages/photos/image/thumbnail.php')
-rw-r--r--pages/photos/image/thumbnail.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/pages/photos/image/thumbnail.php b/pages/photos/image/thumbnail.php
index ae07f2706..ed39c6169 100644
--- a/pages/photos/image/thumbnail.php
+++ b/pages/photos/image/thumbnail.php
@@ -13,7 +13,11 @@ if (!$image) {
// @todo
}
-$contents = $image->getThumbnail($size);
+if ($size == 'master') {
+ $contents = $image->getImage();
+} else {
+ $contents = $image->getThumbnail($size);
+}
if (!$contents) {
forward("mod/tidypics/graphics/image_error_$size");
}