From 152d07d752a6da15518d22deed573e1d26b8193c Mon Sep 17 00:00:00 2001 From: rvelices Date: Wed, 5 Mar 2008 01:50:08 +0000 Subject: - admin comments, configuration, element_set_global, element_set_unit, thumbnail and double_select migration to smarty - fix in redirect.tpl git-svn-id: http://piwigo.org/svn/trunk@2249 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/comments.php | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'admin/comments.php') diff --git a/admin/comments.php b/admin/comments.php index bae32dcb3..a7351ff04 100644 --- a/admin/comments.php +++ b/admin/comments.php @@ -2,7 +2,7 @@ // +-----------------------------------------------------------------------+ // | 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 | // +-----------------------------------------------------------------------+ // | file : $Id$ // | last update : $Date$ @@ -124,9 +124,9 @@ $template->set_filenames(array('comments'=>'admin/comments.tpl')); // TabSheet initialization waiting_tabsheet(); -$template->assign_vars( +$template->assign( array( - 'F_ACTION' => PHPWG_ROOT_PATH.'admin.php?page=comments' + 'F_ACTION' => get_root_url().'admin.php?page=comments' ) ); @@ -154,8 +154,8 @@ while ($row = mysql_fetch_assoc($result)) 'tn_ext'=>@$row['tn_ext'] ) ); - $template->assign_block_vars( - 'comment', + $template->append( + 'comments', array( 'U_PICTURE' => PHPWG_ROOT_PATH.'admin.php?page=picture_modify'. @@ -171,11 +171,7 @@ while ($row = mysql_fetch_assoc($result)) array_push($list, $row['id']); } -$template->assign_vars( - array( - 'LIST' => implode(',', $list) - ) - ); +$template->assign('LIST', implode(',', $list) ); // +-----------------------------------------------------------------------+ // | sending html code | -- cgit v1.2.3