diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-09-07 21:49:19 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-09-07 21:49:19 -0700 |
commit | 714a82d1e01996df451ebffb321181441ed065df (patch) | |
tree | a6ce6164879581b29ed05a6a125c0aab1b21179f | |
parent | 7889ae1085963eaf40afbb72c044da7630a5af63 (diff) |
Automagically generate pretty urls for movies, too.
-rw-r--r-- | modules/gallery/helpers/MY_url.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/gallery/helpers/MY_url.php b/modules/gallery/helpers/MY_url.php index c25f2293..129efb91 100644 --- a/modules/gallery/helpers/MY_url.php +++ b/modules/gallery/helpers/MY_url.php @@ -27,7 +27,9 @@ class url extends url_Core { } $parts = explode("/", $uri, 3); - if ($parts[0] == "albums" || $parts[0] == "photos") { + // @todo if we're only doing this for Item_Model, why not just put this + // all into Item_Model::url()? It'd make url::site() faster. + if ($parts[0] == "albums" || $parts[0] == "photos" || $parts[0] == "movies") { $uri = model_cache::get("item", $parts[1])->relative_url(); } return parent::site($uri . $query, $protocol); |