File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments