Fix mail were sent without the name of application or version when a new application or version was added

This commit is contained in:
Jonathan Ernst
2005-02-11 01:36:24 +00:00
committed by WineHQ
parent 137545d438
commit 30f8514840
2 changed files with 2 additions and 2 deletions

View File

@@ -134,8 +134,8 @@ class Application {
if(query_appdb("INSERT INTO appFamily $sFields VALUES $sValues", "Error while creating a new application.")) if(query_appdb("INSERT INTO appFamily $sFields VALUES $sValues", "Error while creating a new application."))
{ {
$this->iAppId = mysql_insert_id(); $this->iAppId = mysql_insert_id();
$this->mailSupermaintainers(); // Only administrators will be mailed as no supermaintainers exist for this app.
$this->application($this->iAppId); $this->application($this->iAppId);
$this->mailSupermaintainers(); // Only administrators will be mailed as no supermaintainers exist for this app.
return true; return true;
} }
else else

View File

@@ -138,8 +138,8 @@ class Version {
if(query_appdb("INSERT INTO appVersion $sFields VALUES $sValues", "Error while creating a new version.")) if(query_appdb("INSERT INTO appVersion $sFields VALUES $sValues", "Error while creating a new version."))
{ {
$this->iVersionId = mysql_insert_id(); $this->iVersionId = mysql_insert_id();
$this->mailMaintainers();
$this->version($this->iVersionId); $this->version($this->iVersionId);
$this->mailMaintainers();
return true; return true;
} }
else else