Exit instead of throwing exception when PHP < 5.4.0

This commit is contained in:
Matias Griese 2014-08-15 14:47:10 +03:00
parent fee9518134
commit 0c0cc03394

View File

@ -2,7 +2,7 @@
namespace Grav\Common;
if (version_compare($ver = PHP_VERSION, $req = '5.4.0', '<')) {
throw new \RuntimeException(sprintf('You are running PHP %s, but Grav needs at least <strong>PHP %s</strong> to run.', $ver, $req));
exit(sprintf('You are running PHP %s, but Grav needs at least <strong>PHP %s</strong> to run.', $ver, $req));
}
use Tracy\Debugger;