mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 12:48:26 +02:00
Always use local files for admin ui.
This commit is contained in:
@@ -1862,9 +1862,10 @@ class e107
|
|||||||
case 'load':
|
case 'load':
|
||||||
$cdn = (bool) self::getPref('e_jslib_cdn', true);
|
$cdn = (bool) self::getPref('e_jslib_cdn', true);
|
||||||
$debug = (bool) deftrue('e_DEBUG');
|
$debug = (bool) deftrue('e_DEBUG');
|
||||||
|
$admin = (bool) defset('e_ADMIN_AREA', false);
|
||||||
|
|
||||||
// Try to detect and load CDN version.
|
// 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);
|
$lib = $libraryHandler->detect('cdn.' . $library);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user