From: Rob Church Date: Tue, 5 Jun 2007 14:39:03 +0000 (+0000) Subject: * (bug 9993) Force $wgShowExceptionDetails on during installation X-Git-Tag: 1.31.0-rc.0~52660 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=c3eedb7e8d9c616b96188558ae716f173e5a9b2c;p=lhc%2Fweb%2Fwiklou.git * (bug 9993) Force $wgShowExceptionDetails on during installation * (bug 9980) Validate administrator username and password during installation * Some dependencies initialised during installer (some extra includes, should be harmless, $wgContLang and $wgLang, which are re-initialised later in the script, and a stub $wgAuth) * Re-enable error reporting * Fix an undefined variable notice * A few other minor bits and pieces --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 446032f543..02ff75e22e 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -127,6 +127,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN configuration format, e.g. "5;/tmp" * Don't generate a diff link in the patrol log if the page doesn't exist * (bug 10067) Translations for former skins removed from message files +* (bug 9993) Force $wgShowExceptionDetails on during installation +* (bug 9980) Validate administrator username and password during installation == MediaWiki API changes since 1.10 == diff --git a/config/index.php b/config/index.php index 0f762f4446..30d5ccaf0f 100644 --- a/config/index.php +++ b/config/index.php @@ -45,9 +45,16 @@ install_version_checks(); require_once( "includes/Defines.php" ); require_once( "includes/DefaultSettings.php" ); +require_once( "includes/AutoLoader.php" ); require_once( "includes/MagicWord.php" ); require_once( "includes/Namespace.php" ); require_once( "includes/ProfilerStub.php" ); +require_once( "includes/GlobalFunctions.php" ); +require_once( "includes/Hooks.php" ); + +# If we get an exception, the user needs to know +# all the details +$wgShowExceptionDetails = true; ## Databases we support: @@ -269,12 +276,11 @@ define( 'MW_NO_OUTPUT_BUFFER', 1 ); $conf = new ConfigData; install_version_checks(); +$self = 'Installer'; # Maintenance script name, to please Setup.php print "
  • PHP " . phpversion() . " installed
  • \n"; -## Temporarily turn off all errors as we try to discover installed databases -$olderrnum = error_reporting(0); - +error_reporting( 0 ); $phpdatabases = array(); foreach (array_keys($ourdb) as $db) { $compname = $ourdb[$db]['compile']; @@ -283,8 +289,7 @@ foreach (array_keys($ourdb) as $db) { $ourdb[$db]['havedriver'] = 1; } } - -error_reporting($olderrornum); +error_reporting( E_ALL ); if (!$phpdatabases) { print "Could not find a suitable database driver!