From: Reedy Date: Sat, 21 Jul 2012 21:37:59 +0000 (+0100) Subject: (bug 38451) remove $wgAllowPageInfo X-Git-Tag: 1.31.0-rc.0~22509 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22auteur_infos%22%2C%20%22id_auteur=%24id%22%29%20.%20%22?a=commitdiff_plain;h=f6c21c607c5038c90a4518421fcbcc915a012683;p=lhc%2Fweb%2Fwiklou.git (bug 38451) remove $wgAllowPageInfo 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 --- diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index bc04f08444..14953baa5f 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -5776,11 +5776,6 @@ $wgActions = array( */ $wgDisabledActions = array(); -/** - * Allow the "info" action, very inefficient at the moment - */ -$wgAllowPageInfo = false; - /** @} */ # end actions } /*************************************************************************//** diff --git a/includes/Setup.php b/includes/Setup.php index baf7b35506..924c3c07be 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -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