Ignore:
Timestamp:
04/15/10 15:26:02 (14 years ago)
Author:
rodsouza
Message:

Ticket #1009 - Corrigindo problemas com a inclusão de javascript.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/inc/functions.inc.php

    r2419 r2549  
    3030        error_reporting(error_reporting() & ~E_NOTICE); 
    3131 
    32         include(PHPGW_API_INC.'/common_functions.inc.php'); 
     32        include_once(PHPGW_API_INC.'/common_functions.inc.php'); 
    3333         
    3434        /*! 
     
    234234        $GLOBALS['phpgw']->preferences  = CreateObject('phpgwapi.preferences'); 
    235235        $GLOBALS['phpgw']->applications = CreateObject('phpgwapi.applications'); 
     236        $GLOBALS['phpgw']->js           = CreateObject('phpgwapi.javascript'); 
    236237        print_debug('main class loaded', 'messageonly','api'); 
    237238        if (! isset($GLOBALS['phpgw_info']['flags']['included_classes']['error']) || 
     
    403404                                ! $GLOBALS['phpgw_info']['user']['apps']['admin'])) 
    404405                        { 
    405                                 $GLOBALS['phpgw']->common->phpgw_header(); 
     406                                //$GLOBALS['phpgw']->common->phpgw_header(); 
    406407 
    407408                                $GLOBALS['phpgw']->log->write(array('text'=>'W-Permissions, Attempted to access %1','p1'=>$GLOBALS['phpgw_info']['flags']['currentapp'])); 
     
    416417                        $GLOBALS['phpgw']->datetime = CreateObject('phpgwapi.date_time'); 
    417418                } 
     419 
    418420                $GLOBALS['phpgw']->applications->read_installed_apps(); // to get translated app-titles 
    419                  
    420                 /*************************************************************************\ 
    421                 * Load the header unless the developer turns it off                       * 
    422                 \*************************************************************************/ 
    423                 if ( array_key_exists( 'HTTP_BACKGROUNDREQUEST', $_SERVER ) || array_key_exists( 'BackgroundRequest', $_GET ) ) 
    424                 { 
    425                         $GLOBALS['phpgw_info']['flags'] = array( 
    426                                 'noheader'   => true, 
    427                                 'nonavbar'   => true 
    428                         ); 
    429                 } 
    430                 if (!@$GLOBALS['phpgw_info']['flags']['noheader']) 
    431                 { 
    432                         $GLOBALS['phpgw']->common->phpgw_header(); 
    433                 } 
    434         } 
     421        } 
Note: See TracChangeset for help on using the changeset viewer.