Skip to content

Commit 9ac2d73

Browse files
committed
Fixes
1 parent 2a229a1 commit 9ac2d73

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

routing/page_loader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Pages extension for the phpBB Forum Software package.
55
*
6-
* @copyright (c) 2025 phpBB Limited <https://www.phpbb.com>
6+
* @copyright (c) 2015, 2025 phpBB Limited <https://www.phpbb.com>
77
* @license GNU General Public License, version 2 (GPL-2.0)
88
*
99
*/

routing/page_loader_core.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Pages extension for the phpBB Forum Software package.
55
*
6-
* @copyright (c) 2015 phpBB Limited <https://www.phpbb.com>
6+
* @copyright (c) 2015, 2025 phpBB Limited <https://www.phpbb.com>
77
* @license GNU General Public License, version 2 (GPL-2.0)
88
*
99
*/
@@ -58,7 +58,7 @@ public function loadRoutes(): RouteCollection
5858
$route->setDefault('route', $row['page_route']);
5959
$collection->add('phpbb_pages_dynamic_route_' . $row['page_id'], $route);
6060
}
61-
$this->db->sql_freeresult();
61+
$this->db->sql_freeresult($result);
6262

6363
return $collection;
6464
}

routing/page_loader_phpbb3.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Pages extension for the phpBB Forum Software package.
55
*
6-
* @copyright (c) 2025 phpBB Limited <https://www.phpbb.com>
6+
* @copyright (c) 2015, 2025 phpBB Limited <https://www.phpbb.com>
77
* @license GNU General Public License, version 2 (GPL-2.0)
88
*
99
*/

routing/page_loader_phpbb4.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Pages extension for the phpBB Forum Software package.
55
*
6-
* @copyright (c) 2025 phpBB Limited <https://www.phpbb.com>
6+
* @copyright (c) 2015, 2025 phpBB Limited <https://www.phpbb.com>
77
* @license GNU General Public License, version 2 (GPL-2.0)
88
*
99
*/
@@ -15,7 +15,7 @@
1515
use Symfony\Component\Routing\RouteCollection;
1616

1717
/**
18-
* phpbb 4 and Symfony 7 adapter for page loader.
18+
* phpBB 4 and Symfony 7 adapter for page loader.
1919
*/
2020
class page_loader_phpbb4 extends Loader
2121
{
@@ -53,7 +53,7 @@ public function load(mixed $resource, ?string $type = null): RouteCollection
5353
* @param string|null $type The type of the resource, or null if not specified.
5454
* @return bool True if the loader supports the resource and type, false otherwise.
5555
*/
56-
public function supports(mixed $resource, string $type = null): bool
56+
public function supports(mixed $resource, ?string $type = null): bool
5757
{
5858
return $this->core->supportsType($type);
5959
}

0 commit comments

Comments
 (0)