diff --git a/footer.php b/footer.php index bed167bc6..91799dc4d 100644 --- a/footer.php +++ b/footer.php @@ -24,6 +24,10 @@ * International Registered Trademark & Property of PrestaShop SA */ +if (!defined('_PS_VERSION_')) { + exit; +} + if (isset(Context::getContext()->controller)) { $controller = Context::getContext()->controller; } else { diff --git a/header.php b/header.php index 7e8a2ee81..74710f478 100644 --- a/header.php +++ b/header.php @@ -24,6 +24,10 @@ * International Registered Trademark & Property of PrestaShop SA */ +if (!defined('_PS_VERSION_')) { + exit; +} + if (isset(Context::getContext()->controller)) { $controller = Context::getContext()->controller; } else { diff --git a/init.php b/init.php index aa572eff3..1c9c1c37c 100644 --- a/init.php +++ b/init.php @@ -24,6 +24,10 @@ * International Registered Trademark & Property of PrestaShop SA */ +if (!defined('_PS_VERSION_')) { + exit; +} + if (isset(Context::getContext()->controller)) { $controller = Context::getContext()->controller; } else {