Skip to content

Commit

Permalink
Fixed a incompatible bug with Resource class
Browse files Browse the repository at this point in the history
  • Loading branch information
mystralkk committed Nov 25, 2017
1 parent 2d7d14f commit d6a5e0b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion system/classes/Resource.php
Expand Up @@ -370,7 +370,11 @@ public function setJavaScriptLibrary($name, $isFooter = true)
$position = $isFooter ? 'footer' : 'header';

if (!isset($this->libraryLocations[$name])) {
return false;
if (stripos($name, 'jquery.ui.') === 0) {
$name = 'jquery-ui';
} else {
return false;
}
}

switch ($name) {
Expand Down

0 comments on commit d6a5e0b

Please sign in to comment.