mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-15 11:27:24 -04:00
Rename $id --> $uuid for clarity.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user