[Fusionforge-commits] r10204 - trunk/src/plugins/mediawiki/www

Thorsten Glaser mirabilos at libremir.placard.fr.eu.org
Thu Jul 8 15:12:06 CEST 2010


Author: mirabilos
Date: 2010-07-08 15:12:05 +0200 (Thu, 08 Jul 2010)
New Revision: 10204

Modified:
   trunk/src/plugins/mediawiki/www/LocalSettings.php
Log:
Disable pages like Special:Userlogin
agreed lolando@


Modified: trunk/src/plugins/mediawiki/www/LocalSettings.php
===================================================================
--- trunk/src/plugins/mediawiki/www/LocalSettings.php	2010-07-08 08:54:39 UTC (rev 10203)
+++ trunk/src/plugins/mediawiki/www/LocalSettings.php	2010-07-08 13:12:05 UTC (rev 10204)
@@ -213,6 +213,15 @@
 }
 $wgHooks['PersonalUrls'][]='NoLinkOnMainPage';
 
+function DisableLogInOut(&$mList) {
+	unset($mList['Userlogin']);
+	unset($mList['CreateAccount']);
+	unset($mList['Resetpass']);
+	unset($mList['Userlogout']);
+	return true;
+}
+$GLOBALS['wgHooks']['SpecialPage_initList'][] = 'DisableLogInOut';
+
 $GLOBALS['wgHooks']['UserLoadFromSession'][]='FusionForgeMWAuth';
 
 $g = group_get_object_by_name ($fusionforgeproject) ;




More information about the Fusionforge-commits mailing list