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
|
* 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 {
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
4
init.php
4
init.php
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user