Changeset 1071 in ExiteCMS for trunk/includes/theme_functions.php
- Timestamp:
- 11/06/07 17:12:56 (5 years ago)
- File:
-
- 1 edited
-
trunk/includes/theme_functions.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/theme_functions.php
r1068 r1071 162 162 +-----------------------------------------------------*/ 163 163 function load_templates($_type='', $_name='') { 164 global $settings, $ userdata, $db_prefix, $aidlink,164 global $settings, $locale, $userdata, $db_prefix, $aidlink, 165 165 $template, $template_panels, $template_variables, 166 166 $_loadstats, $_headparms, $_bodyparms, $_last_updated; 167 167 168 // store the current locales. We need to restore them later 169 $current_locale = $locale; 170 168 171 // reset all assigned template variables 169 172 $template->clear_all_assign(); … … 173 176 174 177 // Load the global language file 175 include PATH_LOCALE.LOCALESET."global.php";178 locale_load("main.global"); 176 179 177 180 // assign CMS website settings to the template … … 223 226 224 227 // if one or more locales are assigned to this panel, load them first 225 if (isset($panel['locale']) && (is_array($panel['locale']) || $panel['locale'] != "")){228 if (isset($panel['locale']) { 226 229 if (is_array($panel['locale'])) { 227 230 foreach($panel['locale'] as $panel_locale) { 228 include $panel_locale;231 locale_load($panel_locale); 229 232 } 230 233 } else { 231 include $panel['locale'];234 locale_load($panel['locale']); 232 235 } 233 236 } … … 286 289 } 287 290 } 291 292 // restore the current locales. 293 $locale = $current_locale; 288 294 } 289 295
Note: See TracChangeset
for help on using the changeset viewer.
