From 436817d26c788654ab7aa250132beb9a86d0a329 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Mon, 14 Sep 2009 09:53:28 +0200 Subject: [PATCH] Fix casing and detection of security releases. --- framework/Release/lib/Horde/Release.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/framework/Release/lib/Horde/Release.php b/framework/Release/lib/Horde/Release.php index f9085be24..87b17ac3a 100644 --- a/framework/Release/lib/Horde/Release.php +++ b/framework/Release/lib/Horde/Release.php @@ -31,13 +31,13 @@ class Horde_Release /* Constants for the release foucs - these are used as tags when sending * FM the new release announcement.*/ const FOCUS_INITIAL = 'Initial announcement'; - const FOCUS_MINORFEATURE = 'minor feature enhancement'; - const FOCUS_MAJORFEATURE = 'major feature enhancement'; - const FOCUS_MINORBUG = 'minor bugfixes'; - const FOCUS_MAJORBUG = 'major bugfixes'; - const FOCUS_MINORSECURITY = 'minor security fixes'; - const FOCUS_MAJORSECURITY = 'major security fixes'; - const FOCUS_DOCS = 'documentation improvements'; + const FOCUS_MINORFEATURE = 'Minor feature enhancement'; + const FOCUS_MAJORFEATURE = 'Major feature enhancement'; + const FOCUS_MINORBUG = 'Minor bugfixes'; + const FOCUS_MAJORBUG = 'Major bugfixes'; + const FOCUS_MINORSECURITY = 'Minor security fixes'; + const FOCUS_MAJORSECURITY = 'Major security fixes'; + const FOCUS_DOCS = 'Documentation improvements'; /** * Version number of release. @@ -602,7 +602,7 @@ class Horde_Release if ($this->_latest) { $subject .= ' (final)'; } - if ($this->notes['fm']['focus'] == 9) { + if (in_array($version['tag_list'], FOCUS_MAJORSECURITY)) { $subject = '[SECURITY] ' . $subject; } $headers = array('From' => $this->_options['ml']['from'], -- 2.11.0