Changeset 5123 for trunk/include/functions.inc.php
- Timestamp:
- Mar 13, 2010, 1:00:52 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions.inc.php
r5102 r5123 612 612 trigger_action('loading_lang'); 613 613 load_language('local.lang', '', array('no_fallback'=>true) ); 614 list($tmpl, $thm) = explode('/', get_default_template()); 615 $template = new Template(PHPWG_ROOT_PATH.'template/'.$tmpl, $thm); 614 $template = new Template(PHPWG_ROOT_PATH.'themes', get_default_theme()); 616 615 } 617 616 else 618 617 { 619 $template = new Template(PHPWG_ROOT_PATH.'t emplate/'.$user['template'], $user['theme']);618 $template = new Template(PHPWG_ROOT_PATH.'themes', $user['theme']); 620 619 } 621 620 … … 711 710 712 711 /** 713 * returns available t emplate/theme712 * returns available themes 714 713 */ 715 714 function get_pwg_themes() … … 718 717 $themes = array(); 719 718 720 $template_dir = PHPWG_ROOT_PATH.'template'; 721 722 foreach (get_dirs($template_dir) as $template) 723 { 724 if ( $template != 'default' ) 725 { 726 foreach (get_dirs($template_dir.'/'.$template.'/theme') as $theme) 727 { 728 array_push($themes, $template.'/'.$theme); 729 } 730 } 719 $template_dir = PHPWG_ROOT_PATH.'themes'; 720 721 foreach (get_dirs($template_dir) as $theme) 722 { 723 if ( $theme != 'default' ) 724 { 725 array_push($themes, $theme); 726 } 731 727 } 732 728
Note: See TracChangeset
for help on using the changeset viewer.