return Status::newGood();
}
-}
\ No newline at end of file
+ public function outputHandler( $string ) {
+ return htmlspecialchars( $string );
+ }
+}
$ret = true;
- ob_start( array( __CLASS__, 'outputHandler' ) );
+ ob_start( array( $this, 'outputHandler' ) );
try {
do_all_updates( false, true );
} catch ( MWException $e ) {
return $ret;
}
- public static function outputHandler( $string ) {
- return htmlspecialchars( $string );
- }
-
/**
* Get a list of storage engines that are available and supported
*/
global $wgDatabase;
LBFactory::enableBackend();
$wgDatabase = wfGetDB( DB_MASTER );
- ob_start( array( 'SqliteInstaller', 'outputHandler' ) );
+ ob_start( array( $this, 'outputHandler' ) );
do_all_updates( false, true );
ob_end_flush();
return true;
}
- public static function outputHandler( $string ) {
- return htmlspecialchars( $string );
- }
-
public function getLocalSettings() {
$dir = LocalSettingsGenerator::escapePhpString( $this->getVar( 'wgSQLiteDataDir' ) );
return