Ignore:
Timestamp:
04/12/11 16:16:55 (13 years ago)
Author:
thiagoaos
Message:

Ticket #1740 - Adicionado link no label Expresso Mini para a página inicial.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/mobile/inc/class.mobiletemplate.inc.php

    r3987 r3996  
    9292                */ 
    9393                public function print_page($class, $method){ 
     94                        if($GLOBALS['phpgw']->session->appsession('mobile.layout','mobile') == "mini_desktop") { 
     95                                //force to don' t call ui_home.index in a mini desktop version 
     96                                if($class == "ui_home" && $method == "index") { 
     97                                        $class = "ui_mobilemail"; 
     98                                        $method = "change_folder"; 
     99                                        $_REQUEST["folder"] = 0; 
     100                                } 
     101                        } 
     102                         
     103                        //need be called before invoke the action 
    94104                        $this->print_header(); 
    95105                        $this->init_mobile(); 
     106 
    96107                        if(!($class == 'ui_home' && $method == 'index')) $this->print_navbar(); 
    97108                        $filename = 'inc/class.'.$class.'.inc.php'; 
    98109                        include_once($filename); 
    99                         $obj = new $class();             
    100                         $obj -> $method($_REQUEST); 
    101                          
     110                        $obj = new $class(); 
     111                        $obj->$method($_REQUEST); 
     112 
    102113                        if($GLOBALS['phpgw']->session->appsession('mobile.layout','mobile') == "mini_desktop") { 
    103114                                $ui_home = CreateObject('mobile.ui_home'); 
     
    107118                        $this->template->pfp('out', 'mobile_home'); 
    108119                } 
    109                  
     120 
    110121                public function init_mobile() { 
    111122                        $ui_mobilemail = CreateObject('mobile.ui_mobilemail'); 
Note: See TracChangeset for help on using the changeset viewer.