1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02: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:
Vjacheslav Trushkin
2012-02-09 01:34:37 +02:00
parent d4e00b6c0d
commit 6cf7f20590

View File

@@ -923,6 +923,6 @@ class p_master
*/
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));
}
}