From: Roland Häder Date: Sat, 7 Nov 2009 19:35:05 +0000 (+0000) Subject: Missing configuration fixed X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=commitdiff_plain;h=47607f04e6e726290ba784ce3338892c4acc1b2d Missing configuration fixed --- diff --git a/inc/mysql-manager.php b/inc/mysql-manager.php index 27961f5f60..e6ca6a7165 100644 --- a/inc/mysql-manager.php +++ b/inc/mysql-manager.php @@ -1022,7 +1022,15 @@ function getModeAction ($mode, $what) { $ret = ''; //* DEBUG: */ print(__LINE__.'='.$mode.'/'.$what.'/'.getAction()."=
"); - if ((empty($what)) && ($mode != 'admin')) { + if (!isExtensionInstalledAndNewer('sql_patches', '0.0.5')) { + // sql_patches is missing so choose depending on mode + if ($mode == 'admin') { + $what = 'overview'; + } else { + $what = 'welcome'; + } + } elseif ((empty($what)) && ($mode != 'admin')) { + // Use configured 'home' $what = getConfig('index_home'); } // END - if