[Fusionforge-commits] r11311 - trunk/src/www/tracker
Alain Peyrat
aljeux at libremir.placard.fr.eu.org
Tue Nov 2 12:00:00 CET 2010
Author: aljeux
Date: 2010-11-02 12:00:00 +0100 (Tue, 02 Nov 2010)
New Revision: 11311
Modified:
trunk/src/www/tracker/download.php
Log:
Fix exit_error migration.
Modified: trunk/src/www/tracker/download.php
===================================================================
--- trunk/src/www/tracker/download.php 2010-11-02 10:59:55 UTC (rev 11310)
+++ trunk/src/www/tracker/download.php 2010-11-02 11:00:00 UTC (rev 11311)
@@ -30,7 +30,7 @@
//
// get the Project object
//
-$group =& group_get_object($group_id);
+$group = group_get_object($group_id);
if (!$group || !is_object($group) || $group->isError()) {
exit_no_group();
}
@@ -40,23 +40,23 @@
//
$ath = new ArtifactType($group,$atid);
if (!$ath || !is_object($ath)) {
- exit_error('Error','ArtifactType could not be created');
+ exit_error(_('ArtifactType could not be created'),'tracker');
}
if ($ath->isError()) {
- exit_error('Error',$ath->getErrorMessage());
+ exit_error($ath->getErrorMessage(),'tracker');
}
$ah=new Artifact($ath,$aid);
if (!$ah || !is_object($ah)) {
- exit_error('ERROR','Artifact Could Not Be Created');
+ exit_error(_('Artifact Could Not Be Created'),'tracker');
} else if ($ah->isError()) {
- exit_error('ERROR',$ah->getErrorMessage());
+ exit_error($ah->getErrorMessage(), 'tracker');
} else {
$afh=new ArtifactFile($ah,$file_id);
if (!$afh || !is_object($afh)) {
- exit_error('ERROR','ArtifactFile Could Not Be Created');
+ exit_error(_('ArtifactFile Could Not Be Created'),'tracker');
} else if ($afh->isError()) {
- exit_error('ERROR',$afh->getErrorMessage());
+ exit_error($afh->getErrorMessage(),'tracker');
} else {
Header ('Content-disposition: filename="'.str_replace('"', '', $afh->getName()).'"');
Header ("Content-type: ".$afh->getType());
More information about the Fusionforge-commits
mailing list