From 108f3305e9b1e5950c8bf7bd49d0f41bec2c1154 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Wed, 30 Jun 2010 11:35:46 -0400 Subject: [PATCH] bug: avoid loading twice a js file --- ChangeLog | 1 + libraries/header_scripts.inc.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index 66873fb3f1..eaa81ec8d5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA - bug #3022705 [import] Import button does not work in Catalan when there is no progress bar possible - bug [replication] Do not offer information_schema in the list of databases +- bug [js] Avoid loading twice a js file 3.3.4.0 (2010-06-28) - bug #2996161 [import] properly escape import value diff --git a/libraries/header_scripts.inc.php b/libraries/header_scripts.inc.php index faf8cc8205..07254113a7 100644 --- a/libraries/header_scripts.inc.php +++ b/libraries/header_scripts.inc.php @@ -112,6 +112,8 @@ $GLOBALS['js_events'][] = array( 'function' => 'PMA_TT_init', ); +// avoid loading twice a js file +$GLOBALS['js_include'] = array_unique($GLOBALS['js_include']); foreach ($GLOBALS['js_include'] as $js_script_file) { echo '' . "\n"; } -- 2.11.4.GIT