1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-03 13:17:24 +02:00

Custom Framework URLs option

This commit is contained in:
Cameron
2013-02-07 09:31:03 -08:00
parent ac2debe017
commit ed56da85c3

View File

@@ -225,6 +225,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'));
$this->setCacheId(e107::getPref('e_jslib_browser_cache'), 0);