i18n and without explicitely set include_path
strncmp($wgServer, $_SERVER['HTTP_REFERER'], strlen( $wgServer ) ) ) ) {
# For links that came from outside, check for alternate/legacy
# character encoding.
- $data = $wgContLang->checkTitleEncoding( $data );
+ if ( isset( $wgContLang ) ) {
+ $data = $wgContLang->checkTitleEncoding( $data );
+ }
}
if( !$wgUseLatin1 ) {
require_once( 'normal/UtfNormal.php' );
unset( $DP );
unset( $IP );
$wgCommandLineMode = false;
+define( "MEDIAWIKI", true );
require_once( "./LocalSettings.php" );
global $wgArticlePath;
-require_once( "WebRequest.php" );
+require_once( "includes/WebRequest.php" );
$wgRequest = new WebRequest();
$page = $wgRequest->getVal( "wpDropdown" );