[Fusionforge-commits] r8490 - trunk/gforge/common/frs

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Wed Dec 9 21:25:05 CET 2009


Author: aljeux
Date: 2009-12-09 21:25:05 +0100 (Wed, 09 Dec 2009)
New Revision: 8490

Modified:
   trunk/gforge/common/frs/FRSFile.class.php
Log:
Fix syntax error in FRSFile

Modified: trunk/gforge/common/frs/FRSFile.class.php
===================================================================
--- trunk/gforge/common/frs/FRSFile.class.php	2009-12-09 20:15:42 UTC (rev 8489)
+++ trunk/gforge/common/frs/FRSFile.class.php	2009-12-09 20:25:05 UTC (rev 8490)
@@ -158,12 +158,11 @@
 			$this->FRSRelease->FRSPackage->getFileName().'/'.
 			$this->FRSRelease->getFileName().'/';
 
-			rename($file_location, $newfilelocation.$name);
+		rename($file_location, $newfilelocation.$name);
 
-			if (!file_exists($newfilelocation.$name)) {
-				$this->setError(_('File cannot be moved to the permanent location').': '.$newfilelocation.$name);
-				return false;
-			}
+		if (!file_exists($newfilelocation.$name)) {
+			$this->setError(_('File cannot be moved to the permanent location').': '.$newfilelocation.$name);
+			return false;
 		}
 		if (!$release_time) {
 			$release_time=time();




More information about the Fusionforge-commits mailing list