Changeset 3996 for branches/2.2/mobile/inc/class.mobiletemplate.inc.php
- Timestamp:
- 04/12/11 16:16:55 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/mobile/inc/class.mobiletemplate.inc.php
r3987 r3996 92 92 */ 93 93 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 94 104 $this->print_header(); 95 105 $this->init_mobile(); 106 96 107 if(!($class == 'ui_home' && $method == 'index')) $this->print_navbar(); 97 108 $filename = 'inc/class.'.$class.'.inc.php'; 98 109 include_once($filename); 99 $obj = new $class(); 100 $obj ->$method($_REQUEST);101 110 $obj = new $class(); 111 $obj->$method($_REQUEST); 112 102 113 if($GLOBALS['phpgw']->session->appsession('mobile.layout','mobile') == "mini_desktop") { 103 114 $ui_home = CreateObject('mobile.ui_home'); … … 107 118 $this->template->pfp('out', 'mobile_home'); 108 119 } 109 120 110 121 public function init_mobile() { 111 122 $ui_mobilemail = CreateObject('mobile.ui_mobilemail');
Note: See TracChangeset
for help on using the changeset viewer.