mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-22 04:19:11 -04:00
Eliminate temporary variables by passing the $item into the view and
making API calls on the item. Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
This commit is contained in:
committed by
Tim Almdal
parent
b1f9eb1d12
commit
1a587fd016
@@ -27,9 +27,7 @@ class Server_Add_Controller extends Controller {
|
||||
|
||||
$item = ORM::factory("item", $id);
|
||||
$view = new View("server_add_tree_dialog.html");
|
||||
$view->action = url::abs_site("__ARGS__/{$id}__TASK_ID__?csrf=" . access::csrf_token());
|
||||
$view->parents = $item->parents();
|
||||
$view->album_title = $item->title;
|
||||
$view->item = $item;
|
||||
|
||||
$tree = new View("server_add_tree.html");
|
||||
$tree->data = array();
|
||||
|
||||
Reference in New Issue
Block a user