From: Tim Starling Date: Fri, 9 Jul 2004 11:42:24 +0000 (+0000) Subject: Disabling info action for now, would kill suda if we put it live and we can't have... X-Git-Tag: 1.5.0alpha1~2707 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=1fbf7c2202ad94446b07ce2a9c1a6005b1786f72;p=lhc%2Fweb%2Fwiklou.git Disabling info action for now, would kill suda if we put it live and we can't have that happening --- diff --git a/includes/Article.php b/includes/Article.php index ce6e1b02ed..748bcec3ad 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1827,7 +1827,12 @@ class Article { function info() { - global $wgUser, $wgTitle, $wgOut, $wgLang; + global $wgUser, $wgTitle, $wgOut, $wgLang, $wgAllowPageInfo; + + if ( !$wgAllowPageInfo ) { + $wgOut->errorpage( "nosuchaction", "nosuchactiontext" ); + return; + } $basenamespace = $wgTitle->getNamespace() & (~1); $cur_clause = "cur_title='".$wgTitle->getDBkey()."' AND cur_namespace=".$basenamespace; diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index f982827a02..d4959a7c6e 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -432,4 +432,7 @@ $wgAllowUserJs = true; # Allow user Cascading Style Sheets (CSS)? $wgAllowUserCss = true; +# Allow the "info" action, very inefficient at the moment +$wgAllowPageInfo = false; + ?>