Merge pull request #894 from abhishek-webkul/gli-1660

Added: Allow modules to override module admin and front controllers
This commit is contained in:
Rohit Jain
2024-03-15 12:28:02 +05:30
committed by GitHub
3 changed files with 389 additions and 231 deletions

View File

@@ -407,6 +407,9 @@ class AdminControllerCore extends Controller
$this->controller_type = 'admin';
$this->controller_name = get_class($this);
if (strpos($this->controller_name, 'ControllerOverride')) {
$this->controller_name = substr($this->controller_name, 0, -18);
}
if (strpos($this->controller_name, 'Controller')) {
$this->controller_name = substr($this->controller_name, 0, -10);
}