diff options
author | rvelices <rv-github@modusoptimus.com> | 2008-02-28 12:07:00 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2008-02-28 12:07:00 +0000 |
commit | 7818a7715b95c1912a71057ee0e050f30865298c (patch) | |
tree | 7b82e18da8739f4f8d33ecc3bc59b3369c2dbe7a /admin/user_perm.php | |
parent | a95bc3f7daced06c4a8fc148cfea92c4451dc805 (diff) |
2 templates migrated
git-svn-id: http://piwigo.org/svn/trunk@2225 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/user_perm.php')
-rw-r--r-- | admin/user_perm.php | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/admin/user_perm.php b/admin/user_perm.php index c5e2348d1..0437eeb0e 100644 --- a/admin/user_perm.php +++ b/admin/user_perm.php @@ -2,9 +2,8 @@ // +-----------------------------------------------------------------------+ // | PhpWebGallery - a PHP based picture gallery | // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | -// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | +// | Copyright (C) 2003-2008 PhpWebGallery Team - http://phpwebgallery.net | // +-----------------------------------------------------------------------+ -// | branch : BSF (Best So Far) // | file : $Id$ // | last update : $Date$ // | last modifier : $Author$ @@ -126,7 +125,7 @@ $template->set_filenames( ) ); -$template->assign_vars( +$template->assign( array( 'TITLE' => sprintf( @@ -161,8 +160,6 @@ $result = pwg_query($query); if (mysql_num_rows($result) > 0) { - $template->assign_block_vars('groups', array()); - $cats = array(); while ($row = mysql_fetch_array($result)) { @@ -173,11 +170,9 @@ if (mysql_num_rows($result) > 0) foreach ($cats as $category) { - $template->assign_block_vars( - 'groups.category', - array( - 'NAME' => get_cat_display_name_cache($category['uppercats'], null, false) - ) + $template->append( + 'categories_because_of_groups', + get_cat_display_name_cache($category['uppercats'], null, false) ); } } |