Skip to content

Commit 787b886

Browse files
committed
Add IN_PHPBB guard
1 parent e44d61d commit 787b886

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

routing/page_loader.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
use ReflectionMethod;
1515
use Symfony\Component\Config\Loader\LoaderInterface;
1616

17+
if (!defined('IN_PHPBB'))
18+
{
19+
exit;
20+
}
21+
1722
/**
1823
* This code determines which page_loader class to use based on the phpBB version.
1924
* It checks if the Symfony LoaderInterface::load() method has a return type,

0 commit comments

Comments
 (0)