Skip to content

Commit 03f347d

Browse files
committed
Merge branch 'master' into dev/4.0
2 parents 44c38e4 + 421c561 commit 03f347d

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,10 @@ on:
1616

1717
jobs:
1818
call-tests:
19+
name: Extension tests
1920
uses: phpbb-extensions/test-framework/.github/workflows/tests.yml@master
2021
with:
21-
EXTNAME: phpbb/pages # Your extension vendor/package name
22-
SNIFF: 1 # Run code sniffer on your code? 1 or 0
23-
IMAGE_ICC: 1 # Run icc profile sniffer on your images? 1 or 0
24-
EPV: 0 # Run EPV (Extension Pre Validator) on your code? 1 or 0
25-
EXECUTABLE_FILES: 1 # Run check for executable files? 1 or 0
22+
EXTNAME: phpbb/pages # Your extension vendor/package name
2623
CODECOV: 1 # Run code coverage via codecov? 1 or 0
27-
PHPBB_BRANCH: master # The phpBB branch to run tests on
2824
secrets:
2925
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} # Do not change this

event/listener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function viewonline_page($event)
146146
// If any of our pages are being viewed, update the event vars with our routes and titles
147147
foreach ($page_routes as $page_id => $page_data)
148148
{
149-
if ($event['row']['session_page'] === 'app.' . $this->php_ext . DIRECTORY_SEPARATOR . $page_data['route'])
149+
if ($event['row']['session_page'] === 'app.' . $this->php_ext . '/' . $page_data['route'])
150150
{
151151
$event['location'] = $this->lang->lang('PAGES_VIEWONLINE', $page_data['title']);
152152
$event['location_url'] = $this->helper->route('phpbb_pages_dynamic_route_' . $page_id);

0 commit comments

Comments
 (0)