Disabling info action for now, would kill suda if we put it live and we can't have...
authorTim Starling <tstarling@users.mediawiki.org>
Fri, 9 Jul 2004 11:42:24 +0000 (11:42 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Fri, 9 Jul 2004 11:42:24 +0000 (11:42 +0000)
includes/Article.php
includes/DefaultSettings.php

index ce6e1b0..748bcec 100644 (file)
@@ -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;
index f982827..d4959a7 100644 (file)
@@ -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;
+
 ?>