aboutsummaryrefslogtreecommitdiff
path: root/lib/tidypics.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tidypics.php')
-rw-r--r--lib/tidypics.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/tidypics.php b/lib/tidypics.php
index cbf9c0c28..1419a260a 100644
--- a/lib/tidypics.php
+++ b/lib/tidypics.php
@@ -56,7 +56,8 @@ function tp_get_latest_photos($num_images, $owner_guid = 0, $context = 'front')
*/
function tp_get_img_dir() {
$file = new ElggFile();
- return $file->getFilenameOnFilestore() . 'image/';
+ $file->setFilename('image/');
+ return $file->getFilenameOnFilestore();
}
/**