Fixed bug #9786: Remove duplicate JS-Files in backend.php
authorSteffen Kamper <info@sk-typo3.de>
Thu, 13 Nov 2008 08:35:45 +0000 (08:35 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Thu, 13 Nov 2008 08:35:45 +0000 (08:35 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4466 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/backend.php

index cddd93e..f11aa0f 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-11-13  Steffen Kamper  <info@sk-typo3.de>
+
+       * Fixed bug #9786: Remove duplicate JS-Files in backend.php
+
 2008-11-12  Oliver Hader  <oliver@typo3.org>
 
        * Release of TYPO3 4.3.0alpha1
index 71d42f8..4012d95 100644 (file)
@@ -202,6 +202,9 @@ class TYPO3backend {
                 * now put the complete backend document together
                 ******************************************************/
 
+                       // remove duplicate entries
+               $this->jsFiles = array_unique($this->jsFiles);
+
                        // add javascript
                foreach($this->jsFiles as $jsFile) {
                        $GLOBALS['TBE_TEMPLATE']->JScode .= '