aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/console/command/user
diff options
context:
space:
mode:
authorMatt Friedman <maf675@gmail.com>2016-02-29 21:04:16 -0800
committerMatt Friedman <maf675@gmail.com>2016-02-29 21:04:16 -0800
commitb17f9fc81c40a6b7a5a45cc53e378274e1b6922b (patch)
tree4f93571028acaa6beb9c2df6ea0e18d4dcc729be /phpBB/phpbb/console/command/user
parent0ca4484525f69ea5e7c5cd28f671364604725e40 (diff)
downloadforums-b17f9fc81c40a6b7a5a45cc53e378274e1b6922b.tar
forums-b17f9fc81c40a6b7a5a45cc53e378274e1b6922b.tar.gz
forums-b17f9fc81c40a6b7a5a45cc53e378274e1b6922b.tar.bz2
forums-b17f9fc81c40a6b7a5a45cc53e378274e1b6922b.tar.xz
forums-b17f9fc81c40a6b7a5a45cc53e378274e1b6922b.zip
[ticket/12684] Allowed to use $this in enclosure
PHPBB3-12684
Diffstat (limited to 'phpBB/phpbb/console/command/user')
-rw-r--r--phpBB/phpbb/console/command/user/add.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/phpBB/phpbb/console/command/user/add.php b/phpBB/phpbb/console/command/user/add.php
index 6edd214d14..6f0988db5e 100644
--- a/phpBB/phpbb/console/command/user/add.php
+++ b/phpBB/phpbb/console/command/user/add.php
@@ -140,14 +140,13 @@ class add extends \phpbb\console\command\command
if (!$data['new_password'])
{
- $self = $this;
$question = new Question($this->ask_user('PASSWORD'));
- $question->setValidator(function ($value) use ($self, $helper, $input, $output) {
- $question = new Question($self->ask_user('CONFIRM_PASSWORD'));
+ $question->setValidator(function ($value) use ($helper, $input, $output) {
+ $question = new Question($this->ask_user('CONFIRM_PASSWORD'));
$question->setHidden(true);
if ($helper->ask($input, $output, $question) != $value)
{
- throw new runtime_exception($self->language->lang('NEW_PASSWORD_ERROR'));
+ throw new runtime_exception($this->language->lang('NEW_PASSWORD_ERROR'));
}
return $value;
});