aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2008-03-12 22:23:12 +0000
committerplegall <plg@piwigo.org>2008-03-12 22:23:12 +0000
commit6f84eaf7cb10b0db6e82a3c85d998e60a3654c9a (patch)
tree923e53e29a08cef640634137c6ceb13015ac08f1 /admin
parent5db8e25dee835587485d70c28795ddcbe16c5994 (diff)
Modification: admin/tags goes smarty
git-svn-id: http://piwigo.org/svn/trunk@2277 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin')
-rw-r--r--admin/tags.php13
1 files changed, 6 insertions, 7 deletions
diff --git a/admin/tags.php b/admin/tags.php
index 1d7e3ffdb..ab1709dc9 100644
--- a/admin/tags.php
+++ b/admin/tags.php
@@ -190,7 +190,7 @@ SELECT id
$template->set_filenames(array('tags' => 'admin/tags.tpl'));
-$template->assign_vars(
+$template->assign(
array(
'F_ACTION' => PHPWG_ROOT_PATH.'admin.php?page=tags'
)
@@ -200,7 +200,7 @@ $template->assign_vars(
// | form creation |
// +-----------------------------------------------------------------------+
-$template->assign_vars(
+$template->assign(
array(
'TAG_SELECTION' => get_html_tag_selection(
get_all_tags(),
@@ -211,10 +211,9 @@ $template->assign_vars(
if (isset($_POST['edit']) and isset($_POST['tags']))
{
- $template->assign_block_vars(
- 'edit_tags',
+ $template->assign(
array(
- 'LIST' => implode(',', $_POST['tags']),
+ 'EDIT_TAGS_LIST' => implode(',', $_POST['tags']),
)
);
@@ -231,8 +230,8 @@ SELECT id, name
foreach ($_POST['tags'] as $tag_id)
{
- $template->assign_block_vars(
- 'edit_tags.tag',
+ $template->append(
+ 'tags',
array(
'ID' => $tag_id,
'NAME' => $name_of[$tag_id],