Force external scripts under Horde scope to better avoid duplicates and to ensure...
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 22 Nov 2009 15:16:09 +0000 (10:16 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 22 Nov 2009 15:16:58 +0000 (10:16 -0500)
before other application specific files

framework/Core/lib/Horde/Script/Files.php

index e7a2bf3..c16c705 100644 (file)
@@ -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])) {