From: Roland Häder Date: Thu, 30 Jun 2011 21:44:16 +0000 (+0000) Subject: Display a proper message for non-productive extensions X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=commitdiff_plain;h=3e285b5aa39afe4f71664090909185a4c71fb625 Display a proper message for non-productive extensions --- diff --git a/inc/extensions-functions.php b/inc/extensions-functions.php index a6a2e372cc..463bf53ec7 100644 --- a/inc/extensions-functions.php +++ b/inc/extensions-functions.php @@ -1105,11 +1105,20 @@ function addExtensionNotes ($ext_ver) { // Reset them setExtensionUpdateNotes('', $ext_ver); } elseif (in_array($ext_ver, array('0.0', '0.0.0'))) { - // Initial release - $content = array( - 'ver' => $ext_ver, - 'notes' => '{--INITIAL_RELEASE--}' - ); + // Is the extension productive? + if (isExtensionProductive(getCurrentExtensionName())) { + // Initial release + $content = array( + 'ver' => $ext_ver, + 'notes' => '{--INITIAL_RELEASE--}' + ); + } else { + // Not productive + $content = array( + 'ver' => $ext_ver, + 'notes' => '{--DEVELOPER_RELEASE--}' + ); + } } else { // No update notes found $content = array( diff --git a/inc/language/de.php b/inc/language/de.php index 8df092cc5e..d41405542d 100644 --- a/inc/language/de.php +++ b/inc/language/de.php @@ -899,6 +899,7 @@ addMessages(array( 'ADMIN_DELETE_NORMAL_MAIL' => "Mitglieder-Mail löschen", 'ADMIN_NORMAL_MAIL_ALREADY_DELETED' => "Mitglieder-Mail bereits gelöscht.", 'INITIAL_RELEASE' => "Erstes Release fertiggestellt.", + 'DEVELOPER_RELEASE' => "Entwickler-Version zum Testen.", 'NO_UPDATE_NOTES' => "Keine Update-Hinweise gefunden.", 'MYSQL_QUERY_STRING' => "SQL-Abfragebefehl war:", 'MEMBER_NO_MAILS_IN_POOL' => "Sie haben noch keine Mailbuchungen aufgegeben! Es können somit Ihnen auch keine angezeigt werden.",