Changeset 29 for trunk/admin/update.php


Ignore:
Timestamp:
Jul 21, 2003, 10:51:47 PM (21 years ago)
Author:
z0rglub
Message:

template as user_template for displaying pictures in the template

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/update.php

    r26 r29  
    2020function insert_local_category( $cat_id )
    2121{
    22   global $conf, $page;
     22  global $conf, $page, $user;
    2323               
    2424  $site_id = 1;
     
    3232    $cat_directory.= '/'.$result['local_dir'];
    3333    // 1. display the category name to update
    34     $output = '<img src="./images/puce.gif" alt="&gt;" />';
     34    $src = '../template/'.$user['template'].'/admin/images/puce.gif';
     35    $output = '<img src="'.$src.'" alt="&gt;" />';
    3536    $output.= '<span style="font-weight:bold;">'.$result['name'][0].'</span>';
    3637    $output.= ' [ '.$result['last_dir'].' ]';
     
    371372function insert_remote_category( $xml_dir, $site_id, $id_uppercat, $level )
    372373{
    373   global $conf;
     374  global $conf,$user;
    374375
    375376  $output = '';
     
    383384    $categories[$i] = $name;
    384385
    385     $output.= '<img src="./images/puce.gif">';
     386    $src = '../template/'.$user['template'].'/admin/images/puce.gif';
     387    $output.= '<img src="'.$src.'" alt="&gt;" />';
    386388    $output.= '<span style="font-weight:bold;">'.$name.'</span>';
    387389    $output.= '<div class="retrait">';
     
    553555              'remote_site', 'update_part_research' );
    554556templatize_array( $tpl, 'lang', $sub );
     557$vtp->setGlobalVar( $sub, 'user_template', $user['template'] );
    555558//-------------------------------------------- introduction : choices of update
    556559// Display choice if "update" var is not specified
Note: See TracChangeset for help on using the changeset viewer.