From 30f8514840409e61847460987978e22cd8f51d49 Mon Sep 17 00:00:00 2001 From: Jonathan Ernst Date: Fri, 11 Feb 2005 01:36:24 +0000 Subject: [PATCH] Fix mail were sent without the name of application or version when a new application or version was added --- include/application.php | 2 +- include/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/application.php b/include/application.php index a7e89a3..3f23b0e 100644 --- a/include/application.php +++ b/include/application.php @@ -134,8 +134,8 @@ class Application { if(query_appdb("INSERT INTO appFamily $sFields VALUES $sValues", "Error while creating a new application.")) { $this->iAppId = mysql_insert_id(); - $this->mailSupermaintainers(); // Only administrators will be mailed as no supermaintainers exist for this app. $this->application($this->iAppId); + $this->mailSupermaintainers(); // Only administrators will be mailed as no supermaintainers exist for this app. return true; } else diff --git a/include/version.php b/include/version.php index 5d89561..b87989f 100644 --- a/include/version.php +++ b/include/version.php @@ -138,8 +138,8 @@ class Version { if(query_appdb("INSERT INTO appVersion $sFields VALUES $sValues", "Error while creating a new version.")) { $this->iVersionId = mysql_insert_id(); - $this->mailMaintainers(); $this->version($this->iVersionId); + $this->mailMaintainers(); return true; } else