aboutsummaryrefslogtreecommitdiff
path: root/classes/TidypicsAlbum.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-11-23 16:50:04 -0500
committerCash Costello <cash.costello@gmail.com>2011-11-23 16:50:04 -0500
commit0aa823656bf92ae472cb6780afb24f5a0390b880 (patch)
treed73409d132fac52dc44f06831c88556de090e273 /classes/TidypicsAlbum.php
parent4bfbb194ec1f9fc2647d1cb4e946fb95492076d6 (diff)
downloadelgg-0aa823656bf92ae472cb6780afb24f5a0390b880.tar.gz
elgg-0aa823656bf92ae472cb6780afb24f5a0390b880.tar.bz2
added editing of images
Diffstat (limited to 'classes/TidypicsAlbum.php')
-rw-r--r--classes/TidypicsAlbum.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/classes/TidypicsAlbum.php b/classes/TidypicsAlbum.php
index f1fd20669..f85b66d72 100644
--- a/classes/TidypicsAlbum.php
+++ b/classes/TidypicsAlbum.php
@@ -72,6 +72,17 @@ class TidypicsAlbum extends ElggObject {
}
/**
+ * Get the URL for this album
+ *
+ * @return string
+ */
+ public function getURL() {
+ $title = elgg_get_friendly_title($this->getTitle());
+ $url = "photos/album/$this->guid/$title";
+ return elgg_normalize_url($url);
+ }
+
+ /**
* Get an array of image objects
*
* @param int $limit