Skip to content

Commit

Permalink
allow the ability to define $g_skip_lang_load to skip loading languag…
Browse files Browse the repository at this point in the history
…e files as part of core.php
  • Loading branch information
mantis committed May 2, 2009
1 parent a3cee1b commit b12a343
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core.php
Expand Up @@ -242,7 +242,8 @@ function __autoload( $className ) {
}

// push push default language to speed calls to lang_get
lang_push( lang_get_default() );
if ( !isset( $g_skip_lang_load ) )
lang_push( lang_get_default() );

if ( !isset( $g_bypass_headers ) && !headers_sent() ) {
header( 'Content-type: text/html;charset=utf-8' );
Expand Down

0 comments on commit b12a343

Please sign in to comment.