[Fusionforge-commits] FusionForge branch Branch_5_1 updated. 27c6adb11a9b212590cb6eca1baed9f26d69b74e

Thorsten Glaser mirabilos at fusionforge.org
Fri Jan 16 14:45:52 CET 2015


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, Branch_5_1 has been updated
       via  27c6adb11a9b212590cb6eca1baed9f26d69b74e (commit)
      from  a6e8809979dbf69d18718877a321b975bbc94114 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 27c6adb11a9b212590cb6eca1baed9f26d69b74e
Author: Thorsten Glaser <t.glaser at tarent.de>
Date:   Fri Jan 16 14:45:39 2015 +0100

    disable the Wiki if the project is e.g. on Hold

diff --git a/src/plugins/mediawiki/www/LocalSettings.php b/src/plugins/mediawiki/www/LocalSettings.php
index aecd459..f700c16 100644
--- a/src/plugins/mediawiki/www/LocalSettings.php
+++ b/src/plugins/mediawiki/www/LocalSettings.php
@@ -75,6 +75,13 @@ if (!$g->usesPlugin('mediawiki')) {
 	$exit_errorlevel = 1;
 	exit_error(sprintf(_('Project %s does not use the Mediawiki plugin'), $fusionforgeproject));
 }
+if (!$g->isActive()) {
+	/* disabled project requires Site Admin privs */
+	$exit_errorlevel = 1;
+	session_require_global_perm('forge_admin');
+	/* revert, if we’re still there */
+	$exit_errorlevel = 0;
+}
 $wgSitename         = $g->getPublicName() . " Wiki";
 $wgScriptPath       = "/plugins/mediawiki/wiki/$fusionforgeproject" ;
 

-----------------------------------------------------------------------

Summary of changes:
 src/plugins/mediawiki/www/LocalSettings.php |    7 +++++++
 1 file changed, 7 insertions(+)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list