Skip to content

Commit

Permalink
TRONGAGE_PAGES_TRIGGER now recognised by Core router
Browse files Browse the repository at this point in the history
  • Loading branch information
trongate committed Jul 18, 2023
1 parent 8a09b58 commit 0918bf7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions engine/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,14 @@ private function serve_controller() {
$module_with_no_params = explode('?',$segments[1])[0];
$this->current_module = strtolower($module_with_no_params);
$this->current_controller = ucfirst($this->current_module);

if (defined('TRONGATE_PAGES_TRIGGER')) {
if($segments[1] === TRONGATE_PAGES_TRIGGER) {
$this->current_module = 'trongate_pages';
$this->current_controller = 'Trongate_pages';
}
}

}

if (isset($segments[2])) {
Expand Down

0 comments on commit 0918bf7

Please sign in to comment.