r94000 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93999‎ | r94000 | r94001 >
Date:21:47, 5 August 2011
Author:demon
Status:ok (Comments)
Tags:
Comment:
Standardize comments, wrap lines at 80 chars
Modified paths:
  • /trunk/phase3/index.php (modified) (history)

Diff [purge]

Index: trunk/phase3/index.php
@@ -36,17 +36,18 @@
3737 * @file
3838 */
3939
40 -// Bail on old versions of PHP. Pretty much every other file in the codebase
41 -// has structures (try/catch, foo()->bar(), etc etc) which throw parse errors in PHP 4.
42 -// Setup.php and ObjectCache.php have structures invalid in PHP 5.0 and 5.1, respectively.
 40+# Bail on old versions of PHP. Pretty much every other file in the codebase
 41+# has structures (try/catch, foo()->bar(), etc etc) which throw parse errors in
 42+# PHP 4. Setup.php and ObjectCache.php have structures invalid in PHP 5.0 and
 43+# 5.1, respectively.
4344 if ( !function_exists( 'version_compare' ) || version_compare( phpversion(), '5.2.3' ) < 0 ) {
4445 require( dirname( __FILE__ ) . '/includes/PHPVersionError.php' );
4546 wfPHPVersionError( 'index.php' );
4647 }
4748
48 -# Initialise common code. This gives us access to GlobalFunctions, the AutoLoader, and
49 -# the globals $wgRequest, $wgOut, $wgUser, $wgLang and $wgContLang, amongst others; it
50 -# does *not* load $wgTitle
 49+# Initialise common code. This gives us access to GlobalFunctions, the
 50+# AutoLoader, and the globals $wgRequest, $wgOut, $wgUser, $wgLang and
 51+# $wgContLang, amongst others; it does *not* load $wgTitle
5152 if ( isset( $_SERVER['MW_COMPILED'] ) ) {
5253 require ( 'phase3/includes/WebStart.php' );
5354 } else {

Comments

#Comment by JackPotte (talk | contribs)   12:20, 17 December 2011

This happened to me too, with a blank Mediawiki 1.18, with WAMP or EasyPHP (fresh installations, PHPmyAdmin is working). The whole www directory has the maximum permissive permissions (777).

I've fixed it by removing my .htaccess file.

Status & tagging log