show a different error msg when php_sapi == cli

This commit is contained in:
Uwe Steinmann 2025-10-29 15:41:16 +01:00
parent cc34c42f73
commit 73ee5781dd

View File

@ -418,6 +418,9 @@ class Settings { /* {{{ */
// Load config file
if (!defined("SEEDDMS_INSTALL")) {
if(!file_exists($configFilePath)) {
if(php_sapi_name() === 'cli')
echo "You do not seem to have a valid configuration. Set SEEDDMS_CONFIG_FILE to the path of the configuration file.\n";
else
echo "You do not seem to have a valid configuration. Run the <a href=\"install/install.php\">install tool</a> first.";
exit;
}