From 861c1143e231edce5e3b1fc537fe52c51e39bbc6 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Wed, 20 May 2009 01:00:39 +0000 Subject: added function for determining path to main image directory --- lib/tidypics.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3