]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_user.php
More complete rewrite to use wrapper function isExtensionInstalledAndNewer(), some...
[mailer.git] / inc / modules / admin / what-list_user.php
index 4fa37486d957098d7f950d8deca4ca655e271af5..b27461d4645e9e5c50346d5ac6b5fc11ffae6cc7 100644 (file)
@@ -65,12 +65,12 @@ if (isExtensionActive('nickname')) {
 }
 
 // Add random confirmed if extension version matches
-if (getExtensionVersion('user') >= '0.3.4') {
+if (isExtensionInstalledAndNewer('user', '0.3.4')) {
        // Add it...
        $MORE .= ", `rand_confirmed`";
 
        // Add lock reason?
-       if (getExtensionVersion('user') >= '0.3.5') {
+       if (isExtensionInstalledAndNewer('user', '0.3.5')) {
                // Add them...
                $MORE .= ", `lock_reason`, UNIX_TIMESTAMP(`lock_timestamp`) AS lock_timestamp";
        } // END - if
@@ -167,7 +167,7 @@ LIMIT 1",
                }
 
                // Is the user extension newer?
-               if (getExtensionVersion('user') >= '0.3.4') {
+               if (isExtensionInstalledAndNewer('user', '0.3.4')) {
                        // Then "translate" the number
                        $content['rand_confirmed'] = translateComma($content['rand_confirmed']);
                } // END - if