[Fusionforge-commits] r16598 - branches/Branch_5_1/src/www/docman

Franck VILLAUME nerville at fusionforge.org
Fri Oct 19 00:09:00 CEST 2012


Author: nerville
Date: 2012-10-19 00:09:00 +0200 (Fri, 19 Oct 2012)
New Revision: 16598

Modified:
   branches/Branch_5_1/src/www/docman/view.php
Log:
fix path: some system does not allow to write in data_path, use the default tmp dir

Modified: branches/Branch_5_1/src/www/docman/view.php
===================================================================
--- branches/Branch_5_1/src/www/docman/view.php	2012-10-18 16:58:19 UTC (rev 16597)
+++ branches/Branch_5_1/src/www/docman/view.php	2012-10-18 22:09:00 UTC (rev 16598)
@@ -92,7 +92,7 @@
 
 	if ( $nested_groups != NULL ) {
 		$filename = 'docman-'.$g->getUnixName().'-'.$docid.'.zip';
-		$file = forge_get_config('data_path').'/'.$filename;
+		$file = '/tmp/'.$filename;
 		$zip = new ZipArchive;
 		if ( !$zip->open($file, ZIPARCHIVE::CREATE | ZIPARCHIVE::OVERWRITE)) {
 			exit_error(_('Unable to open zip archive for backup'),'docman');




More information about the Fusionforge-commits mailing list