aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2013-09-27 18:14:58 +0200
committerJoas Schilling <nickvergessen@gmx.de>2013-09-27 18:14:58 +0200
commite0adb15074cf7f6776af29376ed205d8d4948949 (patch)
treec3db6f9bd91d44b8b7c42665ab87c7b06d525fd6 /phpBB/phpbb/db
parent08b49203b48dc0bf3e1d851776288483065cf399 (diff)
downloadforums-e0adb15074cf7f6776af29376ed205d8d4948949.tar
forums-e0adb15074cf7f6776af29376ed205d8d4948949.tar.gz
forums-e0adb15074cf7f6776af29376ed205d8d4948949.tar.bz2
forums-e0adb15074cf7f6776af29376ed205d8d4948949.tar.xz
forums-e0adb15074cf7f6776af29376ed205d8d4948949.zip
[ticket/11871] Allow backslash in classnames for Modules
PHPBB3-11871
Diffstat (limited to 'phpBB/phpbb/db')
-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)