Fix direct access to a private object propriety (patch by Andrew Miller)
authorAntoine Musso <hashar@users.mediawiki.org>
Sat, 15 Jan 2005 11:28:21 +0000 (11:28 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sat, 15 Jan 2005 11:28:21 +0000 (11:28 +0000)
config/index.php

index ba246e0..d90caff 100644 (file)
@@ -414,7 +414,7 @@ if( $conf->posted && ( 0 == count( $errs ) ) ) {
 
                $wgTitle = Title::newFromText( "Installation script" );
                $wgDatabase = Database::newFromParams( $wgDBserver, "root", $conf->RootPW, "", 1 );
-               $wgDatabase->mIgnoreErrors = true;
+               $wgDatabase->ignoreErrors(true);
 
                @$myver = mysql_get_server_info( $wgDatabase->mConn );
                if( $myver ) {
@@ -436,7 +436,7 @@ if( $conf->posted && ( 0 == count( $errs ) ) ) {
                                        $wgDBadminpassword = $wgDBpassword;
                                        $wgDatabase = Database::newFromParams( $wgDBserver, $wgDBuser, $wgDBpassword, "", 1 );
                                        $wgDatabase->isOpen();
-                                       $wgDatabase->mIgnoreErrors = true;
+                                       $wgDatabase->ignoreErrors(true);
                                        @$myver = mysql_get_server_info( $wgDatabase->mConn );
                                        if( !$myver ) {
                                                $errs["DBuser"] = "Check name/pass";
@@ -1104,6 +1104,9 @@ if ( \$wgCommandLineMode ) {
 
 \$wgProxyKey = \"$proxyKey\";
 
+# The whitelist
+\$wgWhitelistRead = array(\"Special:Userlogin\");
+
 ## Default skin: you can change the default skin. Use the internal symbolic
 ## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook':
 # \$wgDefaultSkin = 'monobook';