mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 04:10:38 +02:00
Tweak last commit
This commit is contained in:
@@ -237,7 +237,12 @@ class e_jsmanager
|
||||
}
|
||||
}
|
||||
$this->_dependence = null;
|
||||
|
||||
if($vis != 'auto')
|
||||
{
|
||||
$this->coreLib($core);
|
||||
}
|
||||
|
||||
|
||||
// Load stored in preferences plugin lib paths ASAP
|
||||
$plug_libs = e107::getPref('e_jslib_plugin');
|
||||
@@ -681,9 +686,10 @@ class e_jsmanager
|
||||
// Possibly no longer needed.
|
||||
// FIXME - this could break something after CSS support was added, move it to separate method(s), recursion by type!
|
||||
// Causes the css error on jquery-ui as a css file is loaded as a js.
|
||||
/*
|
||||
if(is_array($file_path))
|
||||
|
||||
if(is_array($file_path) )
|
||||
{
|
||||
// print_a($file_path);
|
||||
foreach ($file_path as $fp => $loc)
|
||||
{
|
||||
if(is_numeric($fp))
|
||||
@@ -691,11 +697,15 @@ class e_jsmanager
|
||||
$fp = $loc;
|
||||
$loc = $runtime_location;
|
||||
}
|
||||
// $this->addJs($type, $fp, $loc);
|
||||
|
||||
$type = (strpos($fp,".css")!==false && $type == 'core') ? "core_css" : $type;
|
||||
|
||||
|
||||
$this->addJs($type, $fp, $loc);
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
*/
|
||||
|
||||
if($this->libDisabled($type,$runtime_location))
|
||||
{
|
||||
//echo $this->_dependence." :: DISABLED<br />";
|
||||
|
Reference in New Issue
Block a user