Skip to content

Commit

Permalink
Rename $id --> $uuid for clarity.
Browse files Browse the repository at this point in the history
  • Loading branch information
bharat committed Dec 22, 2009
1 parent 5080bc1 commit ffb81c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/digibug/controllers/digibug.php
Expand Up @@ -55,7 +55,7 @@ public function print_photo($id) {
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") {
Expand All @@ -80,7 +80,7 @@ public function print_proxy($type, $id) {
}
}

$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();
}
Expand Down

0 comments on commit ffb81c3

Please sign in to comment.