aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2013-10-03 20:31:16 -0700
committerNathan Guse <nathaniel.guse@gmail.com>2013-10-03 20:31:16 -0700
commitfdae60c146be5cf04dd1cbd318016a3a3301d122 (patch)
tree4e1375e905514e0be99807729201055788733b36 /phpBB/phpbb
parentb54d0f2da61c22df1e6a117360a9681c7f6eabb3 (diff)
parent2ab3ee7d67f99f1e6b7702b22e79c3a5af85adf8 (diff)
downloadforums-fdae60c146be5cf04dd1cbd318016a3a3301d122.tar
forums-fdae60c146be5cf04dd1cbd318016a3a3301d122.tar.gz
forums-fdae60c146be5cf04dd1cbd318016a3a3301d122.tar.bz2
forums-fdae60c146be5cf04dd1cbd318016a3a3301d122.tar.xz
forums-fdae60c146be5cf04dd1cbd318016a3a3301d122.zip
Merge pull request #1739 from nickvergessen/ticket/11871
[ticket/11871] Allow backslash in classnames for Modules
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/db/migration/tool/module.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/phpBB/phpbb/db/migration/tool/module.php b/phpBB/phpbb/db/migration/tool/module.php
index 9869dd4230..3e39d87c04 100644
--- a/phpBB/phpbb/db/migration/tool/module.php
+++ b/phpBB/phpbb/db/migration/tool/module.php
@@ -182,9 +182,6 @@ class module implements \phpbb\db\migration\tool\tool_interface
{
// The "automatic" way
$basename = (isset($data['module_basename'])) ? $data['module_basename'] : '';
- $basename = str_replace(array('/', '\\'), '', $basename);
- $class = str_replace(array('/', '\\'), '', $class);
-
$module = $this->get_module_info($class, $basename);
$result = '';
@@ -353,9 +350,7 @@ class module implements \phpbb\db\migration\tool\tool_interface
}
// Automatic method
- $basename = str_replace(array('/', '\\'), '', $module['module_basename']);
- $class = str_replace(array('/', '\\'), '', $class);
-
+ $basename = $module['module_basename'];
$module_info = $this->get_module_info($class, $basename);
foreach ($module_info['modes'] as $mode => $info)