Powerful and easy to use cms to build websites, blogs or ecommerce stores.
HTML backendblogblog-engineblog-platformbloggingcmscontent-managementcontent-management-systemecommerceecommerce-platformno-codepage-builderphpphp-cmsphp7php8self-hostedshopping-cartweb-applicationwebsite-builder
Don't include code on exceptions when code is running in cli
givanz0a782c2ac1d0
diff --git a/system/core/startup.php b/system/core/startup.phpindex 16ecc3c..f280406 100755--- a/system/core/startup.php+++ b/system/core/startup.php@@ -239,7 +239,7 @@ function exceptionToArray($exception, $file = false) {$line = $lineNo;$code = '';- if ($file && file_exists($file) && ($codeLines = file($file)) && isset($codeLines[$lineNo])) {+ if (! defined('CLI') && $file && file_exists($file) && ($codeLines = file($file)) && isset($codeLines[$lineNo])) {$codeLines[$lineNo] = preg_replace("/\n$/","\t // <==\n", $codeLines[$lineNo]);$lines = array_slice($codeLines, $lineNo - 7, 14);$line = implode("\n", array_slice($codeLines, $lineNo, 1));@@ -401,7 +401,7 @@ function start() {define('SITE_URL', $_SERVER['HTTP_HOST'] ?? 'localhost');define('SITE_ID', 1);define('SITE_URI', '');- define('SITE_PATH', '');+ define('SITE_PATH', '');FrontController::notFound(false, 'Website not found!');}}