[Fusionforge-commits] r8234 - trunk/gforge/plugins/mediawiki/www

Roland Mas lolando at libremir.placard.fr.eu.org
Tue Oct 6 11:56:29 CEST 2009


Author: lolando
Date: 2009-10-06 11:56:29 +0200 (Tue, 06 Oct 2009)
New Revision: 8234

Modified:
   trunk/gforge/plugins/mediawiki/www/LocalSettings.php
Log:
Fixed loading of local settings for wikis

Modified: trunk/gforge/plugins/mediawiki/www/LocalSettings.php
===================================================================
--- trunk/gforge/plugins/mediawiki/www/LocalSettings.php	2009-10-05 19:22:35 UTC (rev 8233)
+++ trunk/gforge/plugins/mediawiki/www/LocalSettings.php	2009-10-06 09:56:29 UTC (rev 8234)
@@ -14,10 +14,6 @@
 define('MW_INSTALL_PATH','/usr/share/gforge/www/plugins/mediawiki');
 $wikidata = "/var/lib/gforge/plugins/mediawiki/wikidata/$fusionforgeproject" ;
 
-if (file_exists ("$wikidata/LocalSettings.php")) {
-        require ("$wikidata/LocalSettings.php") ;
-}
-
 if( defined( 'MW_INSTALL_PATH' ) ) {
         $IP = MW_INSTALL_PATH;
 } else {
@@ -185,6 +181,10 @@
 $wgGroupPermissions['*']['createpage']    = false;
 $wgGroupPermissions['*']['createtalk']    = false;
 
+if (file_exists ("$wikidata/LocalSettings.php")) {
+        require ("$wikidata/LocalSettings.php") ;
+}
+
 $wgFavicon = '/images/icon.png' ;
 $wgBreakFrames = false ;
 ini_set ('memory_limit', '50M') ;




More information about the Fusionforge-commits mailing list