aboutsummaryrefslogtreecommitdiff
path: root/lib/tidypics.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-05-20 01:00:39 +0000
committerCash Costello <cash.costello@gmail.com>2009-05-20 01:00:39 +0000
commit861c1143e231edce5e3b1fc537fe52c51e39bbc6 (patch)
tree6e8e648736fa61322a2277f4a7a15e61849ecb3c /lib/tidypics.php
parentc07d96b6307bf29b33ea84177be841779e139f62 (diff)
downloadelgg-861c1143e231edce5e3b1fc537fe52c51e39bbc6.tar.gz
elgg-861c1143e231edce5e3b1fc537fe52c51e39bbc6.tar.bz2
added function for determining path to main image directory
Diffstat (limited to 'lib/tidypics.php')
-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