[Fusionforge-commits] r14637 - in trunk: . src/plugins/moinmoin/www

Roland Mas lolando at fusionforge.org
Fri Oct 14 18:05:17 CEST 2011


Author: lolando
Date: 2011-10-14 18:05:17 +0200 (Fri, 14 Oct 2011)
New Revision: 14637

Modified:
   trunk/
   trunk/src/plugins/moinmoin/www/frame.php
Log:
Fixed frame.php for MoinMoinWiki plugin

Modified: trunk/src/plugins/moinmoin/www/frame.php
===================================================================
--- trunk/src/plugins/moinmoin/www/frame.php	2011-10-14 16:05:01 UTC (rev 14636)
+++ trunk/src/plugins/moinmoin/www/frame.php	2011-10-14 16:05:17 UTC (rev 14637)
@@ -1,9 +1,9 @@
 <?php
 
 /*
- * MediaWiki plugin
+ * MoinMoinWiki plugin
  *
- * Copyright 2009, Roland Mas
+ * Copyright 2009-2011, Roland Mas
  * Copyright 2006, Daniel Perez
  *
  */
@@ -12,7 +12,7 @@
 require_once $gfcommon.'include/pre.php';
 
 $group_id = getIntFromRequest('group_id');
-$pluginname = 'mediawiki' ;
+$pluginname = 'moinmoin' ;
 
 $group = group_get_object($group_id);
 if (!$group) {
@@ -26,14 +26,14 @@
 $params = array () ;
 $params['toptab']      = $pluginname;
 $params['group']       = $group_id;
-$params['title']       = _('wiki') ;
+$params['title']       = 'MoinMoinWiki' ;
 $params['pagename']    = $pluginname;
 $params['sectionvals'] = array ($group->getPublicName());
 
 site_project_header($params);
 
-if (file_exists ('/var/lib/gforge/plugins/mediawiki/wikidata/'.$group->getUnixName().'/LocalSettings.php')) {
-	echo '<iframe src="'.util_make_url('/plugins/mediawiki/wiki/'.$group->getUnixName().'/index.php').'" frameborder="0" width=100% height=700></iframe>' ;
+if (file_exists ('/var/lib/gforge/plugins/moinmoin/wikidata/'.$group->getUnixName().'.py')) {
+	echo '<iframe src="'.util_make_url('/plugins/moinmoin/'.$group->getUnixName().'/FrontPage').'" frameborder="0" width=100% height=700></iframe>' ;
 } else {
 	print '<h2>'._('Wiki not created yet, please wait for a few minutes.').'</h2>';
 }




More information about the Fusionforge-commits mailing list