# guaranteed by entering special pages via SpecialPage members such as
# executePath(), but here we have to take a more explicit measure.
- require_once( 'SpecialPage.php' );
+ require_once( dirname(__FILE__) . '/SpecialPage.php' );
foreach( $wgAutoloadClasses as $class => $file ) {
if( !( class_exists( $class ) || interface_exists( $class ) ) ) {
$wgTotalEdits = -1;
-require_once( 'LogPage.php' );
-require_once( 'normal/UtfNormalUtil.php' );
-require_once( 'XmlFunctions.php' );
+global $IP;
+require_once "$IP/includes/LogPage.php";
+require_once "$IP/includes/normal/UtfNormalUtil.php";
+require_once "$IP/includes/XmlFunctions.php";
/**
* Compatibility functions
/** @todo document */
function getText() {
- $fname = 'HistoryBlob::getText';
+ $fname = 'HistoryBlobStub::getText';
global $wgBlobCache;
if( isset( $wgBlobCache[$this->mOldId] ) ) {
$obj = $wgBlobCache[$this->mOldId];
$this->mFunction = $function;
}
if ( $file === 'default' ) {
- $this->mFile = "Special{$name}.php";
+ $this->mFile = dirname(__FILE__) . "/Special{$name}.php";
} else {
$this->mFile = $file;
}
* @addtogroup SpecialPage
*/
-require_once 'SpecialAllpages.php';
-
/**
* Entry point : initialise variables and call subfunctions.
* @param $par String: becomes "FOO" when called like Special:Prefixindex/FOO (default NULL)
/**
*
*/
-require_once( 'ChangesList.php' );
+require_once( dirname(__FILE__) . '/ChangesList.php' );
/**
* Constructor
*/
/** */
-require_once('HTMLForm.php');
+require_once( dirname(__FILE__) . '/HTMLForm.php');
/** Entry point */
function wfSpecialUserrights() {
/**
*
*/
-require_once( 'SpecialRecentchanges.php' );
+require_once( dirname(__FILE__) . '/SpecialRecentchanges.php' );
/**
* Constructor
*/
/** */
-require_once( 'normal/UtfNormal.php' );
+require_once( dirname(__FILE__) . '/normal/UtfNormal.php' );
define ( 'GAID_FOR_UPDATE', 1 );
static function loadData() {
global $utfCombiningClass;
if( !isset( $utfCombiningClass ) ) {
- require_once( 'UtfNormalData.inc' );
+ require_once( dirname(__FILE__) . '/UtfNormalData.inc' );
}
}
}
if( isset( $utfCombiningClass[$c] ) ) {
$lastClass = $utfCombiningClass[$c];
- @$combiners[$lastClass] .= $c;
+ if( isset( $combiners[$lastClass] ) ) {
+ $combiners[$lastClass] .= $c;
+ } else {
+ $combiners[$lastClass] = $c;
+ }
continue;
}
}
}
}
-?>
\ No newline at end of file
+?>
# Read language names
global $wgLanguageNames;
-require_once( 'Names.php' );
+require_once( dirname(__FILE__) . '/Names.php' ) ;
global $wgInputEncoding, $wgOutputEncoding;
function iconv( $in, $out, $string ) {
# For most languages, this is a wrapper for iconv
- return iconv( $in, $out, $string );
+ return iconv( $in, $out . '//IGNORE', $string );
}
// callback functions for uc(), lc(), ucwords(), ucwordbreaks()
die( 1 );
require_once('includes/SkinTemplate.php');
-require_once('MonoBook.php');
+require_once( dirname(__FILE__) . '/MonoBook.php' );
?>
die( -1 );
/** */
-require_once('MonoBook.php');
+require_once( dirname(__FILE__) . '/MonoBook.php' );
/**
* @todo document
die( 1 );
require_once('includes/SkinTemplate.php');
-require_once('MonoBook.php');
+require_once( dirname(__FILE__) . '/MonoBook.php' );
?>
die( -1 );
/** */
-require_once('MonoBook.php');
+require_once( dirname(__FILE__) . '/MonoBook.php' );
/**
* @todo document
die( 1 );
require_once('includes/SkinTemplate.php');
-require_once('MonoBook.php');
+require_once( dirname(__FILE__) . '/MonoBook.php' );
?>
die( -1 );
/** */
-require_once('MonoBook.php');
+require_once( dirname(__FILE__) . '/MonoBook.php' );
/**
* @todo document
require_once( './includes/WebStart.php' );
wfProfileIn( 'thumb.php' );
wfProfileIn( 'thumb.php-start' );
-require_once( 'GlobalFunctions.php' );
-require_once( 'ImageFunctions.php' );
+require_once( './includes/GlobalFunctions.php' );
+require_once( './includes/ImageFunctions.php' );
$wgTrivialMimeDetection = true; //don't use fancy mime detection, just check the file extension for jpg/gif/png.
-require_once( 'Image.php' );
-require_once( 'StreamFile.php' );
+require_once( './includes/Image.php' );
+require_once( './includes/StreamFile.php' );
// Get input parameters
$fileName = isset( $_REQUEST['f'] ) ? $_REQUEST['f'] : '';
// OK, no valid thumbnail, time to get out the heavy machinery
wfProfileOut( 'thumb.php-start' );
-require_once( 'Setup.php' );
+require_once( './includes/Setup.php' );
wfProfileIn( 'thumb.php-render' );
$img = Image::newFromName( $fileName );
* @addtogroup SpecialPage
*/
require_once( './includes/WebStart.php' );
-
-require_once('DatabaseFunctions.php');
+require_once( './includes/DatabaseFunctions.php' );
/**
*