Changeset 5982 for trunk/include/functions.inc.php
- Timestamp:
- Apr 28, 2010, 4:28:05 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions.inc.php
r5781 r5982 695 695 while ($row = pwg_db_fetch_assoc($result)) 696 696 { 697 if ( file_exists($conf['themes_dir'].'/'.$row['id'].'/'.'themeconf.inc.php'))697 if (check_theme_installed($row['id'])) 698 698 { 699 699 $themes[ $row['id'] ] = $row['name']; … … 705 705 706 706 return $themes; 707 } 708 709 function check_theme_installed($theme_id) 710 { 711 global $conf; 712 713 return file_exists($conf['themes_dir'].'/'.$theme_id.'/'.'themeconf.inc.php'); 707 714 } 708 715 … … 1149 1156 function get_pwg_charset() 1150 1157 { 1151 defined('PWG_CHARSET') or fatal_error('PWG_CHARSET undefined'); 1152 return PWG_CHARSET; 1158 $pwg_charset = 'utf-8'; 1159 if (defined('PWG_CHARSET')) 1160 { 1161 $pwg_charset = PWG_CHARSET; 1162 } 1163 return $pwg_charset; 1153 1164 } 1154 1165
Note: See TracChangeset
for help on using the changeset viewer.