aboutsummaryrefslogtreecommitdiffstats
path: root/admin/cat_modify.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2008-03-20 00:35:36 +0000
committerrvelices <rv-github@modusoptimus.com>2008-03-20 00:35:36 +0000
commitf12f0026fcdf791fbd2300cd23c1f14d0a547e3a (patch)
tree0011dc333f69b062b338d33e488299fda6cbd7d4 /admin/cat_modify.php
parentcab98df7768729895771aa072ccc35bc8774e6cb (diff)
- admin/notification_by_mail goes smarty - THE LAST ONE :-) :-)
- get rid of user_list warnings - some code reorganisation in template class + explode modifier - minor template and language changes in search.tpl and cat_modify.tpl git-svn-id: http://piwigo.org/svn/trunk@2286 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/cat_modify.php')
-rw-r--r--admin/cat_modify.php16
1 files changed, 6 insertions, 10 deletions
diff --git a/admin/cat_modify.php b/admin/cat_modify.php
index 7492633b1..b34868657 100644
--- a/admin/cat_modify.php
+++ b/admin/cat_modify.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$
@@ -208,19 +208,17 @@ $category['is_virtual'] = empty($category['dir']) ? true : false;
// Navigation path
-$url = PHPWG_ROOT_PATH.'admin.php?page=cat_modify&amp;cat_id=';
-
$navigation = get_cat_display_name_cache(
$category['uppercats'],
- PHPWG_ROOT_PATH.'admin.php?page=cat_modify&amp;cat_id='
+ get_root_url().'admin.php?page=cat_modify&amp;cat_id='
);
-$form_action = PHPWG_ROOT_PATH.'admin.php?page=cat_modify&amp;cat_id='.$_GET['cat_id'];
+$form_action = get_root_url().'admin.php?page=cat_modify&amp;cat_id='.$_GET['cat_id'];
//----------------------------------------------------- template initialization
$template->set_filename( 'categories', 'admin/cat_modify.tpl');
-$base_url = PHPWG_ROOT_PATH.'admin.php?page=';
+$base_url = get_root_url().'admin.php?page=';
$cat_list_url = $base_url.'cat_list';
$self_url = $cat_list_url;
@@ -236,8 +234,6 @@ $template->assign(
'CAT_COMMENT' => @htmlspecialchars($category['comment']),
'status_values' => array('public','private'),
- 'false_true' => array('false', 'true'),
- 'no_yes' => array('no','yes'),
'CAT_STATUS' => $category['status'],
'CAT_VISIBLE' => $category['visible'],
@@ -256,7 +252,7 @@ $template->assign(
'MAIL_CONTENT' => empty($_POST['mail_content'])
? '' : stripslashes($_POST['mail_content']),
'U_CHILDREN' => $cat_list_url.'&amp;parent_id='.$category['id'],
- 'U_HELP' => PHPWG_ROOT_PATH.'popuphelp.php?page=cat_modify',
+ 'U_HELP' => get_root_url().'popuphelp.php?page=cat_modify',
'F_ACTION' => $form_action,
)
@@ -367,7 +363,7 @@ SELECT id,tn_ext,path
;';
$row = mysql_fetch_array(pwg_query($query));
$src = get_thumbnail_url($row);
- $url = PHPWG_ROOT_PATH.'admin.php?page=picture_modify';
+ $url = get_root_url().'admin.php?page=picture_modify';
$url.= '&amp;image_id='.$category['representative_picture_id'];
$tpl_representant['picture'] =