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

Franck VILLAUME nerville at fusionforge.org
Sat May 5 12:44:32 CEST 2012


Author: nerville
Date: 2012-05-05 12:44:31 +0200 (Sat, 05 May 2012)
New Revision: 15457

Modified:
   branches/Branch_5_1/src/www/docman/view.php
Log:
new try to fix #314

Modified: branches/Branch_5_1/src/www/docman/view.php
===================================================================
--- branches/Branch_5_1/src/www/docman/view.php	2012-05-05 08:52:26 UTC (rev 15456)
+++ branches/Branch_5_1/src/www/docman/view.php	2012-05-05 10:44:31 UTC (rev 15457)
@@ -6,6 +6,7 @@
  * Copyright 2002-2003, Tim Perdue/GForge, LLC
  * Copyright 2010, Franck Villaume - Capgemini
  * Copyright (C) 2010 Alain Peyrat - Alcatel-Lucent
+ * Copyright 2012, Franck Villaume - TrivialDev
  * http://fusionforge.org
  *
  * This file is part of FusionForge. FusionForge is free software;
@@ -98,12 +99,12 @@
 		$filename = 'docman-'.$g->getUnixName().'-'.$docid.'.zip';
 		$file = forge_get_config('data_path').'/'.$filename;
 		$zip = new ZipArchive;
-		if ( !$zip->open($file, ZIPARCHIVE::OVERWRITE)) {
+		if ( !$zip->open($file, ZIPARCHIVE::CREATE | ZIPARCHIVE::OVERWRITE)) {
 			exit_error(_('Unable to open zip archive for backup'),'docman');
 		}
 
-        if ( !docman_fill_zip($zip,$nested_groups,$df))
-            exit_error(_('Unable to fill zip archive for backup'),'docman');
+		if ( !docman_fill_zip($zip,$nested_groups,$df))
+			exit_error(_('Unable to fill zip archive for backup'),'docman');
 
 		if ( !$zip->close())
 			exit_error(_('Unable to close zip archive for backup'),'docman');




More information about the Fusionforge-commits mailing list