Changeset 3536


Ignore:
Timestamp:
11/26/10 08:27:06 (13 years ago)
Author:
niltonneto
Message:

Ticket #1349 - Corrigido problema da busca por grupos em categorias globais.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/admin/inc/class.uicategories.inc.php

    r662 r3536  
    8080                        sort($this->icons); 
    8181                        $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']; 
    8283                } 
    8384 
     
    186187                        // if ExpressoMail 1.2 has been installed and enabled, show the plugin using AJAX.  
    187188                        if($GLOBALS['phpgw_info']['server']['cal_expressoMail']) { 
    188                                 $this->template_dir = 'calendar/templates/'.$GLOBALS['phpgw_info']['user']['preferences']['common']['template_set'];                                                     
    189189                                $module_name = 'expressoMail'.(str_replace("1.","1_",$GLOBALS['phpgw_info']['server']['cal_expressoMail'])); 
    190190                                if($GLOBALS['phpgw_info']['user']['apps'][$module_name]){                                                                
     
    197197                                        $scripts =      "<script src='".$module_name."/js/connector.js' type='text/javascript'></script>". 
    198198                                                                "<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>"; 
    200200                                        // Fim 
    201201                                } 
     
    426426                // if ExpressoMail 1.2 has been installed and enabled, show the plugin using AJAX.  
    427427                if($GLOBALS['phpgw_info']['server']['cal_expressoMail']) { 
    428                         $this->template_dir = 'calendar/templates/'.$GLOBALS['phpgw_info']['user']['preferences']['common']['template_set'];                                                     
    429428                        $module_name = 'expressoMail'.(str_replace("1.","1_",$GLOBALS['phpgw_info']['server']['cal_expressoMail'])); 
    430429                        if($GLOBALS['phpgw_info']['user']['apps'][$module_name]){                                                                
     
    437436                                $scripts =      "<script src='".$module_name."/js/connector.js' type='text/javascript'></script>". 
    438437                                                        "<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>";                          
    440439                                // Fim                                                           
    441440                                $this->template->set_var('scripts',$scripts); 
    442                                 $this->template->set_var('template_set', $this->template_dir); 
    443441                        } 
    444442                } 
    445443                // FIM if. 
     444                $this->template->set_var('template_set', $this->template_dir); 
    446445 
    447446                        $this->template->set_file(array('form' => 'category_form.tpl')); 
Note: See TracChangeset for help on using the changeset viewer.