Display a proper message for non-productive extensions
[mailer.git] / inc / extensions-functions.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(