aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_module.php
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2012-02-09 00:42:28 +0100
committerIgor Wiedler <igor@wiedler.ch>2012-02-09 00:42:28 +0100
commit6582a84379d658f9dddbdb2705ea6bce74685c85 (patch)
tree8e1460119ac9bd9256ef900d622c73d0fe9a62ff /phpBB/includes/functions_module.php
parentd4e00b6c0dd75c757797a0fc8bc30e9b8672e094 (diff)
parentad8ab099301c283b3606459dc9a84f08793f42e5 (diff)
downloadforums-6582a84379d658f9dddbdb2705ea6bce74685c85.tar
forums-6582a84379d658f9dddbdb2705ea6bce74685c85.tar.gz
forums-6582a84379d658f9dddbdb2705ea6bce74685c85.tar.bz2
forums-6582a84379d658f9dddbdb2705ea6bce74685c85.tar.xz
forums-6582a84379d658f9dddbdb2705ea6bce74685c85.zip
Merge remote-tracking branch 'cyberalien/ticket/10634' into develop
* cyberalien/ticket/10634: [ticket/10634] Specify module type when viewing profile [ticket/10634] Changing p_master::is_full_class
Diffstat (limited to 'phpBB/includes/functions_module.php')
-rw-r--r--phpBB/includes/functions_module.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_module.php b/phpBB/includes/functions_module.php
index b7bb770031..db7defdc48 100644
--- a/phpBB/includes/functions_module.php
+++ b/phpBB/includes/functions_module.php
@@ -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));
}
}