summaryrefslogtreecommitdiff
path: root/core/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-05-14 00:59:48 +0000
committerBharat Mediratta <bharat@menalto.com>2009-05-14 00:59:48 +0000
commit96d59caa3b32b58b10147f059047d13d57f24968 (patch)
tree8c6d3aade78193c7e0e44db3a8a3894bbc3f2d34 /core/helpers
parentcb1a5113f87c7e87f86102fe823067acb7a9ef2d (diff)
Use model_cache() instead of ORM::factory()
Diffstat (limited to 'core/helpers')
-rw-r--r--core/helpers/MY_url.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/helpers/MY_url.php b/core/helpers/MY_url.php
index e2dc0219..81dcbe1e 100644
--- a/core/helpers/MY_url.php
+++ b/core/helpers/MY_url.php
@@ -28,7 +28,7 @@ class url extends url_Core {
$parts = explode("/", $uri, 3);
if ($parts[0] == "albums" || $parts[0] == "photos") {
- $uri = ORM::factory("item", $parts[1])->relative_path();
+ $uri = model_cache::get("item", $parts[1])->relative_path();
}
return parent::site($uri . $query, $protocol);
}