Index: trunk/phase3/includes/db/DatabaseMssql.php |
— | — | @@ -815,7 +815,7 @@ |
816 | 816 | } |
817 | 817 | |
818 | 818 | function setup_database() { |
819 | | - global $wgVersion, $wgDBport, $wgDBuser; |
| 819 | + global $wgDBuser; |
820 | 820 | |
821 | 821 | // Make sure that we can write to the correct schema |
822 | 822 | $ctest = "mediawiki_test_table"; |
— | — | @@ -825,7 +825,7 @@ |
826 | 826 | $SQL = "CREATE TABLE $ctest (a int)"; |
827 | 827 | $res = $this->doQuery( $SQL ); |
828 | 828 | if ( !$res ) { |
829 | | - print "<b>FAILED</b>. Make sure that the user \"$wgDBuser\" can write to the database</li>\n"; |
| 829 | + print "<b>FAILED</b>. Make sure that the user " . htmlspecialchars( $wgDBuser ) . " can write to the database</li>\n"; |
830 | 830 | dieout( "</ul>" ); |
831 | 831 | } |
832 | 832 | $this->doQuery( "DROP TABLE $ctest" ); |