mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-11-28 02:20:41 +00:00
show a different error msg when php_sapi == cli
This commit is contained in:
parent
cc34c42f73
commit
73ee5781dd
|
|
@ -418,7 +418,10 @@ class Settings { /* {{{ */
|
||||||
// Load config file
|
// Load config file
|
||||||
if (!defined("SEEDDMS_INSTALL")) {
|
if (!defined("SEEDDMS_INSTALL")) {
|
||||||
if(!file_exists($configFilePath)) {
|
if(!file_exists($configFilePath)) {
|
||||||
echo "You do not seem to have a valid configuration. Run the <a href=\"install/install.php\">install tool</a> first.";
|
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;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user