From ac2cfef6c80739082f2975828b0bced88550b074 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 10 Nov 2016 09:59:48 +0100 Subject: [PATCH] Move scripts loading to correct location MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Čihař --- index.php | 6 ------ user_password.php | 1 + 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/index.php b/index.php index 520217689f..69f697438d 100644 --- a/index.php +++ b/index.php @@ -22,12 +22,6 @@ require_once 'libraries/common.inc.php'; */ require_once 'libraries/display_git_revision.lib.php'; -$response = PMA\libraries\Response::getInstance(); -$header = $response->getHeader(); -$scripts = $header->getScripts(); -$scripts->addFile('server_privileges.js'); -$scripts->addFile('zxcvbn.js'); - /** * pass variables to child pages */ diff --git a/user_password.php b/user_password.php index ac9c3f7d81..e088d1e5ca 100644 --- a/user_password.php +++ b/user_password.php @@ -22,6 +22,7 @@ $response = PMA\libraries\Response::getInstance(); $header = $response->getHeader(); $scripts = $header->getScripts(); $scripts->addFile('server_privileges.js'); +$scripts->addFile('zxcvbn.js'); /** * Displays an error message and exits if the user isn't allowed to use this