Changeset 1568 for trunk/include/functions.inc.php
- Timestamp:
- Oct 20, 2006, 4:17:53 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions.inc.php
r1567 r1568 585 585 global $user, $template, $lang_info, $conf, $lang, $t2, $page, $debug; 586 586 587 if (!isset($lang_info)) { 587 if (!isset($lang_info)) 588 { 589 $user = build_user( $conf['guest_id'], true); 588 590 include_once(get_language_filepath('common.lang.php')); 591 list($tmpl, $thm) = explode('/', $conf['default_template']); 592 $template = new Template(PHPWG_ROOT_PATH.'template/'.$tmpl, $thm); 593 } 594 else 595 { 596 $template = new Template(PHPWG_ROOT_PATH.'template/'.$user['template'], $user['theme']); 589 597 } 590 598 … … 602 610 $url_link = $url; 603 611 $title = 'redirection'; 604 605 unset($template);606 if ( isset($user['template']) )607 {608 $template = new Template(PHPWG_ROOT_PATH.'template/'.$user['template']);609 }610 else611 {612 list($tmpl, $thm) = explode('/', $conf['default_template']);613 global $themeconf;614 include(615 PHPWG_ROOT_PATH616 .'template/'.$tmpl617 .'/theme/'.$thm618 .'/themeconf.inc.php'619 );620 $template = new Template(PHPWG_ROOT_PATH.'template/'.$tmpl);621 $user['is_the_guest']=true;622 $user['id']=$conf['guest_id'];623 }624 612 625 613 $template->set_filenames( array( 'redirect' => 'redirect.tpl' ) ); … … 922 910 function get_themeconf($key) 923 911 { 924 global $t hemeconf;925 926 return isset($themeconf[$key]) ? $themeconf[$key] : '';912 global $template; 913 914 return $template->get_themeconf($key); 927 915 } 928 916
Note: See TracChangeset
for help on using the changeset viewer.