Changeset 5052 for branches/2.2


Ignore:
Timestamp:
09/06/11 11:01:20 (8 years ago)
Author:
alexandrecorreia
Message:

Ticket #2261 - Corrigido os varios redirecionamentos no modulo mobile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/index.php

    r3435 r5052  
    6969        if($app == 'home' && !$api_requested) 
    7070        { 
    71                 Header('Location: ' . $GLOBALS['phpgw']->link('/home.php')); 
     71                if( $_GET['dont_redirect_if_moble'] == 1 ) 
     72                        Header('Location: ' . $GLOBALS['phpgw']->link('/home.php?dont_redirect_if_moble=1')); 
     73                else 
     74                        Header('Location: ' . $GLOBALS['phpgw']->link('/home.php')); 
    7275        } 
    7376 
     
    125128                } 
    126129 
    127                 $GLOBALS['phpgw']->redirect_link('/home.php'); 
     130                if( $_GET['dont_redirect_if_moble'] == 1 ) 
     131                        Header('Location: ' . $GLOBALS['phpgw']->link('/home.php?dont_redirect_if_moble=1')); 
     132                else 
     133                        Header('Location: ' . $GLOBALS['phpgw']->link('/home.php')); 
     134                                 
     135                //$GLOBALS['phpgw']->redirect_link('/home.php'); 
    128136        } 
    129137 
Note: See TracChangeset for help on using the changeset viewer.