Fixed: fatal error when accessing Front Office core files

Co-authored-by: Name <azharbhat.qlo098@webkul.in>
This commit is contained in:
amit sharma
2026-09-28 19:15:44 +05:30
parent d8cf510fe5
commit 1f003d2170
3 changed files with 12 additions and 0 deletions

View File

@@ -24,6 +24,10 @@
* International Registered Trademark & Property of PrestaShop SA * International Registered Trademark & Property of PrestaShop SA
*/ */
if (!defined('_PS_VERSION_')) {
exit;
}
if (isset(Context::getContext()->controller)) { if (isset(Context::getContext()->controller)) {
$controller = Context::getContext()->controller; $controller = Context::getContext()->controller;
} else { } else {

View File

@@ -24,6 +24,10 @@
* International Registered Trademark & Property of PrestaShop SA * International Registered Trademark & Property of PrestaShop SA
*/ */
if (!defined('_PS_VERSION_')) {
exit;
}
if (isset(Context::getContext()->controller)) { if (isset(Context::getContext()->controller)) {
$controller = Context::getContext()->controller; $controller = Context::getContext()->controller;
} else { } else {

View File

@@ -24,6 +24,10 @@
* International Registered Trademark & Property of PrestaShop SA * International Registered Trademark & Property of PrestaShop SA
*/ */
if (!defined('_PS_VERSION_')) {
exit;
}
if (isset(Context::getContext()->controller)) { if (isset(Context::getContext()->controller)) {
$controller = Context::getContext()->controller; $controller = Context::getContext()->controller;
} else { } else {