Display a proper message for non-productive extensions
authorRoland Häder <roland@mxchange.org>
Thu, 30 Jun 2011 21:44:16 +0000 (21:44 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 30 Jun 2011 21:44:16 +0000 (21:44 +0000)
inc/extensions-functions.php
inc/language/de.php

index a6a2e37..463bf53 100644 (file)
@@ -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(
index 8df092c..d414055 100644 (file)
@@ -899,6 +899,7 @@ addMessages(array(
        'ADMIN_DELETE_NORMAL_MAIL' => "Mitglieder-Mail l&ouml;schen",
        'ADMIN_NORMAL_MAIL_ALREADY_DELETED' => "Mitglieder-Mail bereits gel&ouml;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&ouml;nnen somit Ihnen auch keine angezeigt werden.",