Fix for r78512: set the default value to "view" for the action parameter
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 6 Mar 2011 16:51:56 +0000 (16:51 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 6 Mar 2011 16:51:56 +0000 (16:51 +0000)
index.php

index 1d229b0..ff1bd0d 100644 (file)
--- a/index.php
+++ b/index.php
@@ -56,7 +56,7 @@ $wgTitle = $mediaWiki->checkInitialQueries( $wgRequest );
 
 wfProfileOut( 'main-misc-setup' );
 
-$action = $wgRequest->getVal( 'action' );
+$action = $wgRequest->getVal( 'action', 'view' );
 
 # Send Ajax requests to the Ajax dispatcher.
 if( $wgUseAjax && $action == 'ajax' ) {