Changeset 890


Ignore:
Timestamp:
05/21/09 15:40:31 (15 years ago)
Author:
alexandrecorreia
Message:

Ticket #475 - Corrigido caminho das figuras navbar.png.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/templates/default/head.inc.php

    r882 r890  
    7272        $app = $app ? ' ['.(isset($GLOBALS['phpgw_info']['apps'][$app]) ? $GLOBALS['phpgw_info']['apps'][$app]['title'] : lang($app)).']':''; 
    7373 
     74        $webserver_url = $GLOBALS['phpgw_info']['server']['webserver_url']; 
     75        $webserver_url = ( !empty($webserver_url) ) ? $webserver_url : '/'; 
     76         
     77        if(strrpos($webserver_url,'/') === false || strrpos($webserver_url,'/') != (strlen($webserver_url)-1)) 
     78                $webserver_url .= '/'; 
     79         
     80        if( is_null($_SESSION['phpgw_info'][$GLOBALS['phpgw_info']['flags']['currentapp']]['user'])) 
     81                $tmpDefault = "default"; 
     82        else 
     83                $tmpDefault = $_SESSION['phpgw_info'][$GLOBALS['phpgw_info']['flags']['currentapp']]['user']['preferences']['common']['template_set']; 
     84 
    7485        $var = Array( 
    75                 'img_icon'      => '/'.$currentapp . '/templates/'.$_SESSION['phpgw_info'][$GLOBALS['phpgw_info']['flags']['currentapp']]['user']['preferences']['common']['template_set'].'/images/navbar.png', 
    76                 'img_shortcut'  => '/'.$currentapp . '/templates/'.$_SESSION['phpgw_info'][$GLOBALS['phpgw_info']['flags']['currentapp']]['user']['preferences']['common']['template_set'].'/images/navbar.png', 
     86                'img_icon'      => $webserver_url . $currentapp . '/templates/'.$tmpDefault.'/images/navbar.png', 
     87                'img_shortcut'  => $webserver_url . $currentapp . '/templates/'.$tmpDefault.'/images/navbar.png', 
    7788                'pngfix'        => $pngfix, 
    7889                'slider_effects'=> $slider_effects, 
Note: See TracChangeset for help on using the changeset viewer.