[Fusionforge-commits] r9538 - trunk/gforge/plugins/mediawiki/etc/plugins/mediawiki

Roland Mas lolando at libremir.placard.fr.eu.org
Tue Apr 20 10:00:43 CEST 2010


Author: lolando
Date: 2010-04-20 10:00:42 +0200 (Tue, 20 Apr 2010)
New Revision: 9538

Modified:
   trunk/gforge/plugins/mediawiki/etc/plugins/mediawiki/LocalSettings.php
Log:
Fixed preg_grep call

Modified: trunk/gforge/plugins/mediawiki/etc/plugins/mediawiki/LocalSettings.php
===================================================================
--- trunk/gforge/plugins/mediawiki/etc/plugins/mediawiki/LocalSettings.php	2010-04-20 08:00:33 UTC (rev 9537)
+++ trunk/gforge/plugins/mediawiki/etc/plugins/mediawiki/LocalSettings.php	2010-04-20 08:00:42 UTC (rev 9538)
@@ -135,7 +135,7 @@
 		} else {
 			$rname = "ForgeRole:".$r->getName () ;
 		}
-		$role_groups = preg_grep ("^ForgeRole:", $current_groups) ;
+		$role_groups = preg_grep ("/^ForgeRole:/", $current_groups) ;
 		foreach ($role_groups as $cg) {
 			if ($cg != $rname) {
                                 $user->removeGroup ($cg) ;




More information about the Fusionforge-commits mailing list