[Fusionforge-commits] r15783 - in branches/Branch_5_2: . src/plugins/mediawiki/www

Roland Mas lolando at fusionforge.org
Thu Jun 14 16:24:17 CEST 2012


Author: lolando
Date: 2012-06-14 16:24:16 +0200 (Thu, 14 Jun 2012)
New Revision: 15783

Modified:
   branches/Branch_5_2/
   branches/Branch_5_2/src/plugins/mediawiki/www/LocalSettings.php
Log:
Merged from Evolvis: Mediawiki: inclusion guard for LocalSettings.php to avoid double inclusion

Modified: branches/Branch_5_2/src/plugins/mediawiki/www/LocalSettings.php
===================================================================
--- branches/Branch_5_2/src/plugins/mediawiki/www/LocalSettings.php	2012-06-14 14:24:11 UTC (rev 15782)
+++ branches/Branch_5_2/src/plugins/mediawiki/www/LocalSettings.php	2012-06-14 14:24:16 UTC (rev 15783)
@@ -23,6 +23,10 @@
  *  Mediawiki plugin of FusionForge.
  */
 
+/* C style inclusion guard. Yes, I know. Don’t comment on it. */
+if (!isset($fusionforge_plugin_mediawiki_LocalSettings_included)) {
+$fusionforge_plugin_mediawiki_LocalSettings_included = true;
+
 require_once dirname(__FILE__) . '/../../../www/env.inc.php';
 require_once $gfcommon.'include/pre.php';
 require_once $gfcommon.'include/RBACEngine.class.php';
@@ -420,3 +424,6 @@
 // mode: php
 // c-file-style: "bsd"
 // End:
+
+/* !isset($fusionforge_plugin_mediawiki_LocalSettings_included) */
+}




More information about the Fusionforge-commits mailing list