diff --git a/Thelia b/Thelia index a161b610f..ab1dc7a07 100755 --- a/Thelia +++ b/Thelia @@ -1,6 +1,8 @@ #!/usr/bin/env php . */ /* */ /*************************************************************************************/ - +if (php_sapi_name() != 'cli') { + throw new \Exception('this script can only be launched with cli sapi'); +} require __DIR__ . '/../core/bootstrap.php'; $thelia = new Thelia\Core\Thelia("dev", true); diff --git a/install/tax_faker.php b/install/tax_faker.php index ea3080872..2ac350601 100644 --- a/install/tax_faker.php +++ b/install/tax_faker.php @@ -1,5 +1,7 @@