diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-07-02 05:11:03 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-07-02 05:11:03 -0700 |
commit | 495c76f729372e09f7511967c63948e36303e3d7 (patch) | |
tree | d2040ea19e30d7d9124ebb639400044f376c3deb /modules/server_add/views | |
parent | d4e976cc53b32122c2047d9b697a9d5155e66937 (diff) |
Eliminate temporary variables by passing the $item into the view and
making API calls on the item.
Diffstat (limited to 'modules/server_add/views')
-rw-r--r-- | modules/server_add/views/server_add_tree_dialog.html.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/server_add/views/server_add_tree_dialog.html.php b/modules/server_add/views/server_add_tree_dialog.html.php index 8b296987..e2aa5d44 100644 --- a/modules/server_add/views/server_add_tree_dialog.html.php +++ b/modules/server_add/views/server_add_tree_dialog.html.php @@ -7,17 +7,17 @@ }); </script> <div id="gServerAdd"> - <h1 style="display: none;"><?= t("Add Photos to '%title'", array("title" => p::clean($album_title))) ?></h1> + <h1 style="display: none;"><?= t("Add Photos to '%title'", array("title" => p::clean($item->title))) ?></h1> <p id="gDescription"><?= t("Photos will be added to album:") ?></p> <ul class="gBreadcrumbs"> - <? foreach ($parents as $parent): ?> + <? foreach ($item->parents() as $parent): ?> <li><?= p::clean($parent->title) ?></li> <? endforeach ?> - <li class="active"><?= p::clean($album_title) ?></li> + <li class="active"><?= p::clean($item->title) ?></li> </ul> - <?= form::open($action, array("method" => "post")) ?> + <?= form::open(url::abs_site("__ARGS__/{$id}__TASK_ID__?csrf=$csrf"), array("method" => "post")) ?> <div id="gServerAddTree" > <?= $tree ?> </div> |