aboutsummaryrefslogtreecommitdiffstats
path: root/admin/update.php
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2003-07-21 20:51:47 +0000
committerz0rglub <z0rglub@piwigo.org>2003-07-21 20:51:47 +0000
commitb125c3b0863d61de32bb02a5beaa26fe0ab0d54a (patch)
tree8f00a6367ab46af4bc392b8ad9db5d78608fbff6 /admin/update.php
parente9b4e0e0de65caebd47b5e6df6d252f9d1b85932 (diff)
['template'] as user_template for displaying pictures in the template
git-svn-id: http://piwigo.org/svn/trunk@29 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/update.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/admin/update.php b/admin/update.php
index eefd913c1..30d8e0f88 100644
--- a/admin/update.php
+++ b/admin/update.php
@@ -19,7 +19,7 @@ include_once( './include/isadmin.inc.php' );
//------------------------------------------------------------------- functions
function insert_local_category( $cat_id )
{
- global $conf, $page;
+ global $conf, $page, $user;
$site_id = 1;
@@ -31,7 +31,8 @@ function insert_local_category( $cat_id )
$result = get_cat_info( $cat_id );
$cat_directory.= '/'.$result['local_dir'];
// 1. display the category name to update
- $output = '<img src="./images/puce.gif" alt="&gt;" />';
+ $src = '../template/'.$user['template'].'/admin/images/puce.gif';
+ $output = '<img src="'.$src.'" alt="&gt;" />';
$output.= '<span style="font-weight:bold;">'.$result['name'][0].'</span>';
$output.= ' [ '.$result['last_dir'].' ]';
$output.= '<div class="retrait">';
@@ -370,7 +371,7 @@ function remote_images()
// the xml_file.
function insert_remote_category( $xml_dir, $site_id, $id_uppercat, $level )
{
- global $conf;
+ global $conf,$user;
$output = '';
$categories = array();
@@ -382,7 +383,8 @@ function insert_remote_category( $xml_dir, $site_id, $id_uppercat, $level )
$name = getAttribute( $list_dirs[$i], 'name' );
$categories[$i] = $name;
- $output.= '<img src="./images/puce.gif">';
+ $src = '../template/'.$user['template'].'/admin/images/puce.gif';
+ $output.= '<img src="'.$src.'" alt="&gt;" />';
$output.= '<span style="font-weight:bold;">'.$name.'</span>';
$output.= '<div class="retrait">';
@@ -552,6 +554,7 @@ $tpl = array( 'update_default_title', 'update_only_cat', 'update_all',
'update_research_conclusion', 'update_deletion_conclusion',
'remote_site', 'update_part_research' );
templatize_array( $tpl, 'lang', $sub );
+$vtp->setGlobalVar( $sub, 'user_template', $user['template'] );
//-------------------------------------------- introduction : choices of update
// Display choice if "update" var is not specified
check_cat_id( $_GET['update'] );