(bug 38451) remove $wgAllowPageInfo
authorReedy <reedy@wikimedia.org>
Sat, 21 Jul 2012 21:37:59 +0000 (22:37 +0100)
committerAntoine Musso <hashar@free.fr>
Fri, 31 Aug 2012 16:17:51 +0000 (18:17 +0200)
InfoAction needs a bit of work, so this might want to wait a little
while. The patch removes $wgAllowPageInfo which was used to enable the
action=info action (which was disabled by default).

https://gerrit.wikimedia.org/r/#/c/15847 is needed to disable the
counter query.

Change-Id: I467e688090919b627bf1fb124ef712821c2257f6

includes/DefaultSettings.php
includes/Setup.php

index bc04f08..14953ba 100644 (file)
@@ -5776,11 +5776,6 @@ $wgActions = array(
  */
 $wgDisabledActions = array();
 
-/**
- * Allow the "info" action, very inefficient at the moment
- */
-$wgAllowPageInfo = false;
-
 /** @} */ # end actions }
 
 /*************************************************************************//**
index baf7b35..924c3c0 100644 (file)
@@ -332,9 +332,6 @@ if ( !$wgEnotifMinorEdits ) {
 foreach( $wgDisabledActions as $action ){
        $wgActions[$action] = false;
 }
-if( !$wgAllowPageInfo ){
-       $wgActions['info'] = false;
-}
 
 if ( !$wgHtml5Version && $wgHtml5 && $wgAllowRdfaAttributes ) {
        # see http://www.w3.org/TR/rdfa-in-html/#document-conformance