summaryrefslogtreecommitdiff
path: root/modules/digibug
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-12-21 16:40:18 -0800
committerBharat Mediratta <bharat@menalto.com>2009-12-21 16:40:18 -0800
commitffb81c33571072e549d9f84f76c801699aef4cff (patch)
treecbe56ef5f0b8b67af548a1f6d1662ef17f5ff56c /modules/digibug
parent5080bc12a240e6e6c1fb7d2c8e93d78137b5092c (diff)
Rename $id --> $uuid for clarity.
Diffstat (limited to 'modules/digibug')
-rw-r--r--modules/digibug/controllers/digibug.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/digibug/controllers/digibug.php b/modules/digibug/controllers/digibug.php
index 03f9e812..d070727d 100644
--- a/modules/digibug/controllers/digibug.php
+++ b/modules/digibug/controllers/digibug.php
@@ -55,7 +55,7 @@ class Digibug_Controller extends Controller {
print $v;
}
- public function print_proxy($type, $id) {
+ public function print_proxy($type, $uuid) {
// If its a request for the full size then make sure we are coming from an
// authorized address
if ($type == "full") {
@@ -80,7 +80,7 @@ class Digibug_Controller extends Controller {
}
}
- $proxy = ORM::factory("digibug_proxy", array("uuid" => $id));
+ $proxy = ORM::factory("digibug_proxy")->where("uuid", "=", $uuid)->find();
if (!$proxy->loaded() || !$proxy->item->loaded()) {
throw new Kohana_404_Exception();
}