diff --git a/e107_admin/db.php b/e107_admin/db.php index 11efcfe26..5ee342aa1 100644 --- a/e107_admin/db.php +++ b/e107_admin/db.php @@ -329,24 +329,20 @@ class system_tools $frm = e107::getForm(); $mes = e107::getMessage(); - if(!deftrue('e_DEVELOPER')) + if(!$pref['developer']) { e107::getMessage()->addError("Developer mode has to be enabled in order to use this functionality!"); e107::getRender()->tablerender(DBLAN_10.SEP.DBLAN_112, $mes->render()); return; } - // $message = DBLAN_70; - // $message .= "
".LAN_CREATE.""; - - // Check for minimum required PHP version, and display warning instead of sync button to avoid broken functionality after syncing // MIN_PHP_VERSION constant only defined in install.php, thus hardcoded here $min_php_version = '5.6'; if(version_compare(PHP_VERSION, $min_php_version, "<")) { - $mes->addWarning("The minimum required PHP version is ".$min_php_version.". You are using PHP version ".PHP_VERSION.".
Syncing with Github has been disabled to avoid broken fuctionality."); // No nee to translate, developer mode only + $mes->addWarning("The minimum required PHP version is ".$min_php_version.". You are using PHP version ".PHP_VERSION.".
Syncing with Github has been disabled to avoid broken fuctionality."); // No need to translate, developer mode only } else { @@ -358,7 +354,6 @@ class system_tools $mes->addInfo($message); } - // $text = "
"; e107::getRender()->tablerender(DBLAN_10.SEP.DBLAN_112, $mes->render()); }