[Fusionforge-commits] r11338 - in trunk/src/plugins/wiki/www: . themes/fusionforge

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Tue Nov 2 21:02:32 CET 2010


Author: aljeux
Date: 2010-11-02 21:02:31 +0100 (Tue, 02 Nov 2010)
New Revision: 11338

Modified:
   trunk/src/plugins/wiki/www/g
   trunk/src/plugins/wiki/www/themes/fusionforge/themeinfo.php
Log:
Wiki: temporary hack for unimplemented method getIsExternal()

Modified: trunk/src/plugins/wiki/www/g
===================================================================
--- trunk/src/plugins/wiki/www/g	2010-11-02 19:53:13 UTC (rev 11337)
+++ trunk/src/plugins/wiki/www/g	2010-11-02 20:02:31 UTC (rev 11338)
@@ -59,8 +59,9 @@
 
     $group_name = $project->getUnixName();
     $group_public_name = $project->getPublicName();
-    $is_external = $project->getIsExternal();
 
+    $is_external = method_exists($project, 'getIsExternal') && $project->getIsExternal();
+
     $wc = new WikiConfig($group_id);
 
     define('VIRTUAL_PATH', '/wiki/g/'.$group_name);

Modified: trunk/src/plugins/wiki/www/themes/fusionforge/themeinfo.php
===================================================================
--- trunk/src/plugins/wiki/www/themes/fusionforge/themeinfo.php	2010-11-02 19:53:13 UTC (rev 11337)
+++ trunk/src/plugins/wiki/www/themes/fusionforge/themeinfo.php	2010-11-02 20:02:31 UTC (rev 11338)
@@ -41,7 +41,7 @@
 
         // Display a warning banner for internal users when the wiki is opened
         // to external users.
-        if ($project->getIsExternal()) {
+        if (method_exists($project, 'getIsExternal') && $project->getIsExternal()) {
         	$external_user = false;
         	if (session_loggedin()) {
         		$user = session_get_user();




More information about the Fusionforge-commits mailing list