Rename $id --> $uuid for clarity.

This commit is contained in:
Bharat Mediratta
2009-12-21 16:40:18 -08:00
parent 5080bc12a2
commit ffb81c3357
+2 -2
View File
@@ -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();
}