Revert "Eliminate temporary variables by passing the $item into the view and"

This reverts commit 1a587fd016.
This commit is contained in:
Tim Almdal
2009-07-09 08:42:54 -07:00
parent 703d93a1ea
commit 724d2af960
2 changed files with 7 additions and 5 deletions
@@ -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();