Display a proper message for non-productive extensions
[mailer.git] / inc / extensions-functions.php
index a6a2e372cc7487910e7451b10345dab6fcab9661..463bf53ec7be4718e665008d37841cbef4663805 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'))) {
                        // 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(
                } else {
                        // No update notes found
                        $content = array(