[Fusionforge-commits] r15531 - branches/Branch_5_2/src/plugins/mediawiki/www

Franck VILLAUME nerville at fusionforge.org
Sun May 20 19:23:38 CEST 2012


Author: nerville
Date: 2012-05-20 19:23:37 +0200 (Sun, 20 May 2012)
New Revision: 15531

Modified:
   branches/Branch_5_2/src/plugins/mediawiki/www/plugin_admin.php
Log:
fix #426: hardcoded mediawiki path

Modified: branches/Branch_5_2/src/plugins/mediawiki/www/plugin_admin.php
===================================================================
--- branches/Branch_5_2/src/plugins/mediawiki/www/plugin_admin.php	2012-05-20 17:10:32 UTC (rev 15530)
+++ branches/Branch_5_2/src/plugins/mediawiki/www/plugin_admin.php	2012-05-20 17:23:37 UTC (rev 15531)
@@ -4,6 +4,7 @@
  *
  * Copyright © 2010
  *      Thorsten Glaser <t.glaser at tarent.de>
+ * Copyright 2012, Franck Villaume - TrivialDev
  * All rights reserved.
  *
  * This file is part of FusionForge. FusionForge is free software;
@@ -76,7 +77,7 @@
 	exit_error("Access Denied", "You are not an admin of this project");
 
 $group_unix_name = $group->getUnixName();
-$wgUploadDirectory = "/var/lib/gforge/plugins/mediawiki/wikidata/" .
+$wgUploadDirectory = forge_get_config('projects_path', 'mediawiki') . "/" .
     $group_unix_name . "/images";
 $group_logo = $wgUploadDirectory . "/.wgLogo.png";
 $group_logo_url = util_make_url("/plugins/mediawiki/wiki/" .




More information about the Fusionforge-commits mailing list