Template engine fixed:
[mailer.git] / inc / modules / admin / admin-inc.php
index 4eadcc4894a63950df4e26ff2c6f864fd6ccd864..126e4dd5beff94265cf4f025fa1735d47e6d114d 100644 (file)
@@ -648,7 +648,14 @@ function generateUserProfileLink ($userid, $title = '', $what = 'list_user') {
 // Check "logical-area-mode"
 function adminGetMenuMode () {
        // Set the default menu mode as the mode for all admins
-       $mode = getAdminMenu();
+       $mode = 'global';
+
+       // If sql_patches is up-to-date enough, use the configuration
+       if (isExtensionInstalledAndNewer('sql_patches', '0.3.2')) {
+               $mode = getAdminMenu();
+       } // END - if
+
+       // Backup it
        $adminMode = $mode;
 
        // Get admin id