diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-07-02 20:11:03 +0800 | 
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-09 23:34:14 +0800 | 
| commit | 1a587fd01686cf603b2c7eefd406cf200c6e0ee1 (patch) | |
| tree | 27ad2549c0d4c65c87a22fe6020320072a72f754 /modules/server_add/views | |
| parent | b1f9eb1d12fbb9acb97ece2333c21ab76d909101 (diff) | |
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>
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>  | 
