aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/tidypics.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/tidypics.php b/lib/tidypics.php
index 0a9db4f5d..1254f3ff6 100644
--- a/lib/tidypics.php
+++ b/lib/tidypics.php
@@ -4,5 +4,17 @@
*
*/
-
+ /**
+ * Get image directory path
+ *
+ * Each album gets a subdirectory based on its container id
+ *
+ * @return string path to image directory
+ */
+ function tp_get_img_dir()
+ {
+ $file = new ElggFile();
+ return $file->getFilenameOnFilestore() . 'image/';
+ }
+
?> \ No newline at end of file