Changeset 6668 for trunk/include/functions.inc.php
- Timestamp:
- Jul 6, 2010, 10:10:03 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions.inc.php
r6385 r6668 33 33 34 34 //----------------------------------------------------------- generic functions 35 function get_extra_fields($order_by_fields)36 {37 $fields = str_ireplace(array(' order by ', ' desc', ' asc'),38 array('', '', ''),39 $order_by_fields40 );41 if (!empty($fields))42 {43 $fields = ','.$fields;44 }45 return $fields;46 }47 35 48 36 // The function get_moment returns a float value coresponding to the number … … 584 572 global $user, $template, $lang_info, $conf, $lang, $t2, $page, $debug; 585 573 586 if (!isset($lang_info) )574 if (!isset($lang_info) || !isset($template) ) 587 575 { 588 576 $user = build_user( $conf['guest_id'], true); … … 591 579 load_language('lang', PHPWG_ROOT_PATH.'local/', array('no_fallback'=>true, 'local'=>true) ); 592 580 $template = new Template(PHPWG_ROOT_PATH.'themes', get_default_theme()); 593 }594 else595 {596 $template = new Template(PHPWG_ROOT_PATH.'themes', $user['theme']);597 581 } 598 582
Note: See TracChangeset
for help on using the changeset viewer.