[Fusionforge-commits] r9330 - trunk/gforge/plugins/mediawiki/cronjobs

Roland Mas lolando at libremir.placard.fr.eu.org
Fri Apr 2 14:53:04 CEST 2010


Author: lolando
Date: 2010-04-02 14:53:04 +0200 (Fri, 02 Apr 2010)
New Revision: 9330

Modified:
   trunk/gforge/plugins/mediawiki/cronjobs/create-wikis.php
Log:
Automatically import some initial contents into the wiki, if a dump is found

Modified: trunk/gforge/plugins/mediawiki/cronjobs/create-wikis.php
===================================================================
--- trunk/gforge/plugins/mediawiki/cronjobs/create-wikis.php	2010-04-02 12:52:56 UTC (rev 9329)
+++ trunk/gforge/plugins/mediawiki/cronjobs/create-wikis.php	2010-04-02 12:53:04 UTC (rev 9330)
@@ -170,6 +170,14 @@
 			cron_entry(23,$err);
 			exit;
 		}
+
+		$mwwrapper = $sys_opt_path."/plugins/mediawiki/bin/mw-wrapper.php" ;
+		$dumpfile = $sys_etc_path."/mediawiki/initial-content.xml" ;
+		
+		if (file_exists ($dumpfile)) {
+			system ("$mwwrapper $project importDump.php $dumpfile") ;
+			system ("$mwwrapper $project rebuildrecentchanges.php") ;
+		}
 	} else {
 		cron_debug("  Nothing to be done.");
 	}




More information about the Fusionforge-commits mailing list