Changeset 2707 for trunk/index.php


Ignore:
Timestamp:
05/04/10 18:58:04 (14 years ago)
Author:
rodsouza
Message:

Ticket #1058 - Corrigindo problemas no expressoAdmin1_2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/index.php

    r2703 r2707  
    9090 
    9191        $GLOBALS[$class] = CreateObject(sprintf('%s.%s',$app,$class)); 
    92         if((is_array($GLOBALS[$class]->public_functions) && $GLOBALS[$class]->public_functions[$method]) && ! $invalid_data) 
     92        if ( is_object( $GLOBALS[ $class ] ) && ( ( ! property_exists( $class, 'public_functions' ) ) || (is_array($GLOBALS[$class]->public_functions) && $GLOBALS[$class]->public_functions[$method]) && ! $invalid_data ) ) 
    9393        { 
    94                 execmethod($_GET['menuaction']); 
     94                $menuaction = $_GET[ 'menuaction' ]; 
     95                unset( $_GET[ 'menuaction' ] ); 
     96                echo execmethod( $menuaction, $_GET ); 
    9597                unset($app); 
    9698                unset($class); 
     
    137139                } 
    138140 
    139                 echo '<script>ExpressoLivre.link( "' . $GLOBALS[ 'phpgw' ] -> link( '/home.php' ) . '", true );</script>'; 
     141                echo '<script>ExpressoLivre.link( "' . $GLOBALS[ 'phpgw' ] -> link( '/home.php' ) . '", true );/* ??? */</script>'; 
    140142                exit; 
    141143        } 
Note: See TracChangeset for help on using the changeset viewer.