aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db/migration
diff options
context:
space:
mode:
authorMatt Friedman <maf675@gmail.com>2014-03-13 16:10:08 -0700
committerMatt Friedman <maf675@gmail.com>2014-03-13 16:10:08 -0700
commit5df3e0a4ec4a30434f7b727149d1e60c3223cb42 (patch)
treeb260f2c3197442abdf14aa6683912bd69c31ad63 /phpBB/phpbb/db/migration
parent89b0ff1da8bd6869c8afed8493ff33895cd31bde (diff)
downloadforums-5df3e0a4ec4a30434f7b727149d1e60c3223cb42.tar
forums-5df3e0a4ec4a30434f7b727149d1e60c3223cb42.tar.gz
forums-5df3e0a4ec4a30434f7b727149d1e60c3223cb42.tar.bz2
forums-5df3e0a4ec4a30434f7b727149d1e60c3223cb42.tar.xz
forums-5df3e0a4ec4a30434f7b727149d1e60c3223cb42.zip
[ticket/12263] Remove unused argument in module add/remove
PHPBB3-12263
Diffstat (limited to 'phpBB/phpbb/db/migration')
-rw-r--r--phpBB/phpbb/db/migration/tool/module.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/phpBB/phpbb/db/migration/tool/module.php b/phpBB/phpbb/db/migration/tool/module.php
index 6f2b6cc75a..3baddd857a 100644
--- a/phpBB/phpbb/db/migration/tool/module.php
+++ b/phpBB/phpbb/db/migration/tool/module.php
@@ -163,11 +163,10 @@ class module implements \phpbb\db\migration\tool\tool_interface
* )
* Optionally you may not send 'modes' and it will insert all of the
* modules in that info file.
- * @param string|bool $include_path If you would like to use a custom include
* path, specify that here
* @return null
*/
- public function add($class, $parent = 0, $data = array(), $include_path = false)
+ public function add($class, $parent = 0, $data = array())
{
// Allows '' to be sent as 0
$parent = $parent ?: 0;
@@ -328,11 +327,10 @@ class module implements \phpbb\db\migration\tool\tool_interface
* @param int|string|bool $parent The parent module_id|module_langname(0 for no parent).
* Use false to ignore the parent check and check class wide.
* @param int|string $module The module id|module_langname
- * @param string|bool $include_path If you would like to use a custom include path,
* specify that here
* @return null
*/
- public function remove($class, $parent = 0, $module = '', $include_path = false)
+ public function remove($class, $parent = 0, $module = '')
{
// Imitation of module_add's "automatic" and "manual" method so the uninstaller works from the same set of instructions for umil_auto
if (is_array($module))
@@ -340,7 +338,7 @@ class module implements \phpbb\db\migration\tool\tool_interface
if (isset($module['module_langname']))
{
// Manual Method
- return $this->remove($class, $parent, $module['module_langname'], $include_path);
+ return $this->remove($class, $parent, $module['module_langname']);
}
// Failed.