From ed56da85c3a7c76a8b7568e223d9752e003b77f7 Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 7 Feb 2013 09:31:03 -0800 Subject: [PATCH] Custom Framework URLs option --- e107_handlers/js_manager.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/e107_handlers/js_manager.php b/e107_handlers/js_manager.php index abef94818..3e1e09a46 100644 --- a/e107_handlers/js_manager.php +++ b/e107_handlers/js_manager.php @@ -224,6 +224,13 @@ class e_jsmanager { // Try to auto-detect runtime location $this->setInAdmin(defset('e_ADMIN_AREA', false)); + + $customJqueryUrls = e107::getPref('library-jquery-urls'); + + if(vartrue($customJqueryUrls) && $this->_in_admin === false) + { + $this->_libraries['jquery'] = explode("\n", $customJqueryUrls); + } // Try to load browser cache id from core preferences //$this->setCacheId(deftrue('e_NOCACHE') ? time() : e107::getPref('e_jslib_browser_cache')); @@ -234,13 +241,13 @@ class e_jsmanager // $core_libs = e107::getPref('e_jslib_core'); $this->_core_prefs = e107::getPref('e_jslib_core'); $core = array(); - + if(is_array($this->_core_prefs)) { foreach($this->_core_prefs as $id=>$vis) { $this->_dependence = $id; - + if(!$this->libDisabled($id,$vis)) { //echo "

FRAMEWORK Loaded: ".$id." :: ".$vis."

";