From ca91e6ed6846d7619c1eeaf12bbb440fff56e113 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=B3na=20Lore?= Date: Fri, 27 Jan 2017 23:32:28 +0100 Subject: [PATCH] Always use local files for admin ui. --- e107_handlers/e107_class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/e107_handlers/e107_class.php b/e107_handlers/e107_class.php index fcd1a084d..ee14884c6 100644 --- a/e107_handlers/e107_class.php +++ b/e107_handlers/e107_class.php @@ -1862,9 +1862,10 @@ class e107 case 'load': $cdn = (bool) self::getPref('e_jslib_cdn', true); $debug = (bool) deftrue('e_DEBUG'); + $admin = (bool) defset('e_ADMIN_AREA', false); // Try to detect and load CDN version. - if($cdn && substr($library, 0, 4) != 'cdn.') + if(!$admin && $cdn && substr($library, 0, 4) != 'cdn.') { $lib = $libraryHandler->detect('cdn.' . $library);