return false;
}
- $this->showMessage( 'config-have-db', $wgLang->listToText( $goodNames ), count( $goodNames ) );
-
// Check for FTS3 full-text search module
$sqlite = $this->getDBInstaller( 'sqlite' );
if ( $sqlite->isCompiled() ) {
$db = new DatabaseSqliteStandalone( ':memory:' );
- $this->showMessage( $db->getFulltextSearchModule() == 'FTS3'
- ? 'config-have-fts3'
- : 'config-no-fts3'
- );
+ if( $db->getFulltextSearchModule() == 'FTS3' ) {
+ $this->showMessage( 'config-no-fts3' );
+ }
}
}
$this->showMessage( 'config-xml-bad' );
return false;
}
- $this->showMessage( 'config-xml-good' );
}
/**
$limit = ini_get( 'memory_limit' );
if ( !$limit || $limit == -1 ) {
- $this->showMessage( 'config-memory-none' );
return true;
}
$this->setVar( '_RaiseMemory', true );
}
} else {
- $this->showMessage( 'config-memory-ok', $limit );
+ return true;
}
}
* Environment check for compiled object cache types.
*/
protected function envCheckCache() {
- $caches = array();
-
+ $caches = false;
foreach ( $this->objectCaches as $name => $function ) {
if ( function_exists( $function ) ) {
$caches[$name] = true;
- $this->showMessage( 'config-' . $name );
}
}
$diff3 = $this->locateExecutableInDefaultPaths( $names, $versionInfo );
if ( $diff3 ) {
- $this->showMessage( 'config-diff3-good', $diff3 );
$this->setVar( 'wgDiff3', $diff3 );
} else {
$this->setVar( 'wgDiff3', false );
$IP = dirname( dirname( dirname( __FILE__ ) ) );
$this->setVar( 'IP', $IP );
- $this->showMessage( 'config-dir', $IP );
// PHP_SELF isn't available sometimes, such as when PHP is CGI but
// cgi.fix_pathinfo is disabled. In that case, fall back to SCRIPT_NAME
$uri = preg_replace( '{^(.*)/config.*$}', '$1', $path );
$this->setVar( 'wgScriptPath', $uri );
- $this->showMessage( 'config-uri', $uri );
}
/**
} else {
$ext = 'php';
}
-
$this->setVar( 'wgScriptExtension', ".$ext" );
- $this->showMessage( 'config-file-extension', $ext );
}
/**
# Try the current value of LANG.
if ( isset( $candidatesByLocale[ getenv( 'LANG' ) ] ) ) {
$this->setVar( 'wgShellLocale', getenv( 'LANG' ) );
- $this->showMessage( 'config-shell-locale', getenv( 'LANG' ) );
return true;
}
foreach ( $commonLocales as $commonLocale ) {
if ( isset( $candidatesByLocale[$commonLocale] ) ) {
$this->setVar( 'wgShellLocale', $commonLocale );
- $this->showMessage( 'config-shell-locale', $commonLocale );
return true;
}
}
if ( isset( $candidatesByLang[$wikiLang] ) ) {
$m = reset( $candidatesByLang[$wikiLang] );
$this->setVar( 'wgShellLocale', $m[0] );
- $this->showMessage( 'config-shell-locale', $m[0] );
return true;
}
if ( count( $candidatesByLocale ) ) {
$m = reset( $candidatesByLocale );
$this->setVar( 'wgShellLocale', $m[0] );
- $this->showMessage( 'config-shell-locale', $m[0] );
return true;
}
$safe = !$this->dirIsExecutable( $dir, $url );
if ( $safe ) {
- $this->showMessage( 'config-uploads-safe' );
+ return true;
} else {
$this->showMessage( 'config-uploads-not-safe', $dir );
}