Changeset 2369


Ignore:
Timestamp:
03/29/10 14:23:21 (14 years ago)
Author:
rodsouza
Message:

Ticket #1009 - Removendo redundância de chamada ao método 'phpgw_header'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/home.php

    r2367 r2369  
    2626 
    2727        $GLOBALS['phpgw_info']['flags'] = array( 
    28                 'noheader'                => True, 
    29                 'nonavbar'                => True, 
    3028                'currentapp'              => 'home', 
     29                'noheader'                => ( ( array_key_exists( 'HTTP_BACKGROUNDREQUEST', $_SERVER ) ) ? true : false ), 
     30                'nonavbar'                => ( ( array_key_exists( 'HTTP_BACKGROUNDREQUEST', $_SERVER ) ) ? true : false ), 
    3131                'enable_network_class'    => True, 
    3232                'enable_contacts_class'   => True, 
    3333                'enable_nextmatchs_class' => True 
    3434        ); 
     35 
    3536        include('header.inc.php'); 
    3637        $GLOBALS['phpgw_info']['flags']['app_header']=lang('home'); 
     
    6162        { 
    6263                $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/' . $GLOBALS['phpgw_info']['user']['preferences']['common']['default_app'] . '/' . 'index.php')); 
    63         } 
    64         else 
    65         { 
    66                 $GLOBALS['phpgw']->common->phpgw_header(); 
    67                 echo parse_navbar(); 
    6864        } 
    6965        // Default Applications (Home Page)  
Note: See TracChangeset for help on using the changeset viewer.