From cece77d831b1669a6d510e341db209446b2b20e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Tue, 5 Jun 2018 02:26:08 -0300 Subject: Refactor Server/Privileges MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaces Template::get() with $this->template->render() Signed-off-by: MaurĂ­cio Meneghini Fauth --- libraries/classes/Display/ChangePassword.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libraries/classes/Display/ChangePassword.php') 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 -- cgit v1.2.3