diff options
author | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2018-06-05 08:26:08 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2018-06-05 08:26:08 +0300 |
commit | cece77d831b1669a6d510e341db209446b2b20e7 (patch) | |
tree | fde1ef9dbff164f91207d5a812a436581e2d80f8 /libraries/classes/Display | |
parent | 628d27b69ae4db61e0437cc97b5f18c85c79443a (diff) |
Refactor Server/Privileges
Replaces Template::get() with $this->template->render()
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'libraries/classes/Display')
-rw-r--r-- | libraries/classes/Display/ChangePassword.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libraries/classes/Display/ChangePassword.php b/libraries/classes/Display/ChangePassword.php index f9b8c6e25a..b15776d6e9 100644 --- a/libraries/classes/Display/ChangePassword.php +++ b/libraries/classes/Display/ChangePassword.php @@ -11,6 +11,7 @@ namespace PhpMyAdmin\Display; use PhpMyAdmin\Message; use PhpMyAdmin\Server\Privileges; +use PhpMyAdmin\Template; use PhpMyAdmin\Url; use PhpMyAdmin\Util; @@ -33,7 +34,7 @@ class ChangePassword */ public static function getHtml($mode, $username, $hostname) { - $serverPrivileges = new Privileges(); + $serverPrivileges = new Privileges(new Template()); /** * autocomplete feature of IE kills the "onchange" event handler and it * must be replaced by the "onpropertychange" one in this case |