aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/console/command/db/migrate.php
diff options
context:
space:
mode:
authorDhruv Goel <dhruv.goel92@gmail.com>2014-07-22 00:14:01 +0530
committerDhruv Goel <dhruv.goel92@gmail.com>2014-07-22 00:14:01 +0530
commite11875527dbb09c2c22192c6b6866a19cc38473d (patch)
tree42c02717631bbbd2fa875e79e782288ee0c8c9d0 /phpBB/phpbb/console/command/db/migrate.php
parent1c8357a1cba79ed490d7bebda59c67ea3c2bda46 (diff)
parent07ce29c081c8bbd24a5094d89346be33dda583c5 (diff)
downloadforums-e11875527dbb09c2c22192c6b6866a19cc38473d.tar
forums-e11875527dbb09c2c22192c6b6866a19cc38473d.tar.gz
forums-e11875527dbb09c2c22192c6b6866a19cc38473d.tar.bz2
forums-e11875527dbb09c2c22192c6b6866a19cc38473d.tar.xz
forums-e11875527dbb09c2c22192c6b6866a19cc38473d.zip
Merge pull request #2752 from bantu/ticket/12656
[ticket/12656] Pass user object into all console commands for translation
Diffstat (limited to 'phpBB/phpbb/console/command/db/migrate.php')
-rw-r--r--phpBB/phpbb/console/command/db/migrate.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/phpBB/phpbb/console/command/db/migrate.php b/phpBB/phpbb/console/command/db/migrate.php
index 2abeaf5268..758b125b13 100644
--- a/phpBB/phpbb/console/command/db/migrate.php
+++ b/phpBB/phpbb/console/command/db/migrate.php
@@ -32,19 +32,15 @@ class migrate extends \phpbb\console\command\command
/** @var \phpbb\log\log */
protected $log;
- /** @var \phpbb\user */
- protected $user;
-
- function __construct(\phpbb\db\migrator $migrator, \phpbb\extension\manager $extension_manager, \phpbb\config\config $config, \phpbb\cache\service $cache, \phpbb\log\log $log, \phpbb\user $user)
+ function __construct(\phpbb\user $user, \phpbb\db\migrator $migrator, \phpbb\extension\manager $extension_manager, \phpbb\config\config $config, \phpbb\cache\service $cache, \phpbb\log\log $log)
{
$this->migrator = $migrator;
$this->extension_manager = $extension_manager;
$this->config = $config;
$this->cache = $cache;
$this->log = $log;
- $this->user = $user;
+ parent::__construct($user);
$this->user->add_lang(array('common', 'install', 'migrator'));
- parent::__construct();
}
protected function configure()