mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/10634] Changing p_master::is_full_class
Changing p_master::is_full_class to check allow all module types, not only current type PHPBB3-10634
This commit is contained in:
parent
d4e00b6c0d
commit
6cf7f20590
1 changed files with 1 additions and 1 deletions
|
@ -923,6 +923,6 @@ class p_master
|
||||||
*/
|
*/
|
||||||
protected function is_full_class($basename)
|
protected function is_full_class($basename)
|
||||||
{
|
{
|
||||||
return (substr($basename, 0, 6) === 'phpbb_' || substr($basename, 0, strlen($this->p_class) + 1) === $this->p_class . '_');
|
return (preg_match('/^(phpbb|ucp|mcp|acp)_/', $basename));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue