diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-09 08:42:54 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-09 08:42:54 -0700 |
commit | 724d2af960c55b5a60b3c5e6bf68585426d46ab0 (patch) | |
tree | fe3d53ab4b63c1bc3b03a6b12866dbdca6b3bf27 /modules/server_add/controllers/server_add.php | |
parent | 703d93a1eac6d6332361067ffd74b697149c1feb (diff) |
Revert "Eliminate temporary variables by passing the $item into the view and"
This reverts commit 1a587fd01686cf603b2c7eefd406cf200c6e0ee1.
Diffstat (limited to 'modules/server_add/controllers/server_add.php')
-rw-r--r-- | modules/server_add/controllers/server_add.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/server_add/controllers/server_add.php b/modules/server_add/controllers/server_add.php index b0c47660..05ea5058 100644 --- a/modules/server_add/controllers/server_add.php +++ b/modules/server_add/controllers/server_add.php @@ -27,7 +27,9 @@ class Server_Add_Controller extends Controller { $item = ORM::factory("item", $id); $view = new View("server_add_tree_dialog.html"); - $view->item = $item; + $view->action = url::abs_site("__ARGS__/{$id}__TASK_ID__?csrf=" . access::csrf_token()); + $view->parents = $item->parents(); + $view->album_title = $item->title; $tree = new View("server_add_tree.html"); $tree->data = array(); |