From 905778428451a5443c7d70a397e9f5df60350044 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Sun, 22 Nov 2009 10:16:09 -0500 Subject: [PATCH] Force external scripts under Horde scope to better avoid duplicates and to ensure they are loaded before other application specific files --- framework/Core/lib/Horde/Script/Files.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/Core/lib/Horde/Script/Files.php b/framework/Core/lib/Horde/Script/Files.php index e7a2bf3bc..c16c705ac 100644 --- a/framework/Core/lib/Horde/Script/Files.php +++ b/framework/Core/lib/Horde/Script/Files.php @@ -79,9 +79,9 @@ class Horde_Script_Files */ public function addExternal($url, $app = null) { - if (is_null($app)) { - $app = $GLOBALS['registry']->getApp(); - } + // Force external scripts under Horde scope to better avoid duplicates, + // and to ensure they are loaded before other application specific files + $app = 'Horde'; // Don't include scripts multiple times. if (!empty($this->_included[$app][$url])) { -- 2.11.0