[Fusionforge-commits] r17532 - trunk/src/plugins/wiki/www

Marc-Etienne VARGENAU vargenau at fusionforge.org
Wed Jul 17 14:11:31 CEST 2013


Author: vargenau
Date: 2013-07-17 14:11:31 +0200 (Wed, 17 Jul 2013)
New Revision: 17532

Modified:
   trunk/src/plugins/wiki/www/g
   trunk/src/plugins/wiki/www/view.php
Log:
Use forge_get_config('groupdir_prefix')

Modified: trunk/src/plugins/wiki/www/g
===================================================================
--- trunk/src/plugins/wiki/www/g	2013-07-17 12:06:11 UTC (rev 17531)
+++ trunk/src/plugins/wiki/www/g	2013-07-17 12:11:31 UTC (rev 17532)
@@ -117,7 +117,7 @@
 
     define('ENABLE_RATEIT', $wc->getWikiConfig('ENABLE_RATEIT'));
 
-    define('UPLOAD_FILE_PATH', '/opt/groups/'.WIKI_NAME.'/www/uploads/');
+    define('UPLOAD_FILE_PATH', forge_get_config('groupdir_prefix').'/'.WIKI_NAME.'/www/uploads/');
     // define('UPLOAD_DATA_PATH', SERVER_URL . '/www/'.WIKI_NAME.'/uploads/');
     if ($project->isPublic()) {
         define('UPLOAD_DATA_PATH', '/www/'.WIKI_NAME.'/uploads/');
@@ -225,8 +225,8 @@
     define('ENABLE_REVERSE_DNS', false);
 
     // Web DAV location
-    define('DEFAULT_DUMP_DIR', "/opt/groups/".$group_name."/wikidump/");
-    define('HTML_DUMP_DIR', "/opt/groups/".$group_name."/wikidumphtml/");
+    define('DEFAULT_DUMP_DIR', forge_get_config('groupdir_prefix').'/'.$group_name."/wikidump/");
+    define('HTML_DUMP_DIR', forge_get_config('groupdir_prefix').'/'.$group_name."/wikidumphtml/");
 
     define('COMPRESS_OUTPUT', false);
 

Modified: trunk/src/plugins/wiki/www/view.php
===================================================================
--- trunk/src/plugins/wiki/www/view.php	2013-07-17 12:06:11 UTC (rev 17531)
+++ trunk/src/plugins/wiki/www/view.php	2013-07-17 12:11:31 UTC (rev 17532)
@@ -75,7 +75,7 @@
 array_shift($arr);
 $path = join('/', $arr);
 
-$basepath = realpath('/opt/groups/' . $project->getUnixName() . '/www/uploads/');
+$basepath = realpath(forge_get_config('groupdir_prefix') .'/'. $project->getUnixName() . '/www/uploads/');
 $filepath = realpath($basepath . '/' . $path);
 $filename = basename($filepath);
 




More information about the Fusionforge-commits mailing list