Changeset 3536
- Timestamp:
- 11/26/10 08:27:06 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/admin/inc/class.uicategories.inc.php
r662 r3536 80 80 sort($this->icons); 81 81 $this->img_url = $GLOBALS['phpgw_info']['server']['webserver_url'].'/phpgwapi/images/'; 82 $this->template_dir = 'calendar/templates/'.$GLOBALS['phpgw_info']['user']['preferences']['common']['template_set']; 82 83 } 83 84 … … 186 187 // if ExpressoMail 1.2 has been installed and enabled, show the plugin using AJAX. 187 188 if($GLOBALS['phpgw_info']['server']['cal_expressoMail']) { 188 $this->template_dir = 'calendar/templates/'.$GLOBALS['phpgw_info']['user']['preferences']['common']['template_set'];189 189 $module_name = 'expressoMail'.(str_replace("1.","1_",$GLOBALS['phpgw_info']['server']['cal_expressoMail'])); 190 190 if($GLOBALS['phpgw_info']['user']['apps'][$module_name]){ … … 197 197 $scripts = "<script src='".$module_name."/js/connector.js' type='text/javascript'></script>". 198 198 "<script type='text/javascript'>var DEFAULT_URL = '".$module_name."/controller.php?action=';</script> ". 199 "<script src=' ".$this->template_dir."/js/search.js' type='text/javascript'></script>";199 "<script src='calendar/js/search.js' type='text/javascript'></script>"; 200 200 // Fim 201 201 } … … 426 426 // if ExpressoMail 1.2 has been installed and enabled, show the plugin using AJAX. 427 427 if($GLOBALS['phpgw_info']['server']['cal_expressoMail']) { 428 $this->template_dir = 'calendar/templates/'.$GLOBALS['phpgw_info']['user']['preferences']['common']['template_set'];429 428 $module_name = 'expressoMail'.(str_replace("1.","1_",$GLOBALS['phpgw_info']['server']['cal_expressoMail'])); 430 429 if($GLOBALS['phpgw_info']['user']['apps'][$module_name]){ … … 437 436 $scripts = "<script src='".$module_name."/js/connector.js' type='text/javascript'></script>". 438 437 "<script type='text/javascript'>var DEFAULT_URL = '".$module_name."/controller.php?action=';</script> ". 439 "<script src=' ".$this->template_dir."/js/search.js' type='text/javascript'></script>";438 "<script src='calendar/js/search.js' type='text/javascript'></script>"; 440 439 // Fim 441 440 $this->template->set_var('scripts',$scripts); 442 $this->template->set_var('template_set', $this->template_dir);443 441 } 444 442 } 445 443 // FIM if. 444 $this->template->set_var('template_set', $this->template_dir); 446 445 447 446 $this->template->set_file(array('form' => 'category_form.tpl'));
Note: See TracChangeset
for help on using the changeset viewer.