Fixed: fatal error when accessing Front Office core files
Co-authored-by: Name <azharbhat.qlo098@webkul.in>
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user