Skip to content

Commit 59311b3

Browse files
committed
Index is now the front end controller
1 parent 6bf29c1 commit 59311b3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

event/listener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function show_page_links()
133133
public function viewonline_page($event)
134134
{
135135
// Are any users on app.php?
136-
if ($event['on_page'][1] === 'app')
136+
if ($event['on_page'][1] === 'index')
137137
{
138138
// Load our language file
139139
$this->lang->add_lang('pages_common', 'phpbb/pages');
@@ -144,7 +144,7 @@ public function viewonline_page($event)
144144
// If any of our pages are being viewed, update the event vars with our routes and titles
145145
foreach ($page_routes as $page_id => $page_data)
146146
{
147-
if ($event['row']['session_page'] === 'app.' . $this->php_ext . '/' . $page_data['route'])
147+
if ($event['row']['session_page'] === 'index.' . $this->php_ext . '/' . $page_data['route'])
148148
{
149149
$event['location'] = $this->lang->lang('PAGES_VIEWONLINE', $page_data['title']);
150150
$event['location_url'] = $this->helper->route('phpbb_pages_dynamic_route_' . $page_id);

0 commit comments

Comments
 (0)