diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-07-10 08:01:32 -0700 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-07-10 08:01:32 -0700 |
| commit | 5cf267cc4c4af79389276d786914cbb2b7a2ec25 (patch) | |
| tree | 60f404a5678bda0d49ff0abcef11d675034d3fae /modules/server_add/views | |
| parent | de39dcbce67f934085621ac7838980d42bfd1bb9 (diff) | |
Fix a bug where we were not properly locating the parent album when
adding a new album or photo.
Simplify the data structure that we pass down to
server_add_tree.html.php so that we just pass a file list and let it
do whatever it wants with it.
Diffstat (limited to 'modules/server_add/views')
| -rw-r--r-- | modules/server_add/views/server_add_tree.html.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/server_add/views/server_add_tree.html.php b/modules/server_add/views/server_add_tree.html.php index f8205a8b..74bc40e0 100644 --- a/modules/server_add/views/server_add_tree.html.php +++ b/modules/server_add/views/server_add_tree.html.php @@ -1,13 +1,13 @@ <?php defined("SYSPATH") or die("No direct script access.") ?> -<? foreach ($files as $file => $name): ?> +<? foreach ($files as $file): ?> <? $id = substr(md5($file), 10) ?> <li id="file_<?= $id ?>" class="<?= is_file($file) ? "gFile" : "gDirectory gCollapsed ui-icon-left" ?>"> <? if (is_dir($file)): ?> <span onclick="open_close_branch('<?=$file?>', '<?=$id?>')" class="ui-icon ui-icon-plus"></span> <? endif ?> <label> - <?= form::checkbox("path[]", p::clean($file), false, "onclick=click_node(this)") ?> - <?= p::clean($name) ?> + <?= form::checkbox("path[]", $file, false, "onclick=click_node(this)") ?> + <?= p::clean(basename($file)) ?> </label> <? if (is_dir($file)): ?> <ul id="tree_<?= $id ?>" style="display: none"></ul> |
