Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Commit

Permalink
Fixes 'Error: Class Settings not found'
Browse files Browse the repository at this point in the history
Error: "Class 'S1SYPHOS\SRI\settings' not found" in PHP 7.0.2, see #6
  • Loading branch information
S1SYPHOS committed Nov 22, 2017
1 parent 83f1637 commit cdc8b3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/js.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Asset;
use f;
use settings;
use html;

class JS extends \Kirby\Component\JS {
Expand Down Expand Up @@ -58,7 +59,7 @@ public function tag($src, $async = false) {
// build the array of HTML attributes
$attr = array('src' => url($src));

if(file_exists($src)) {
if(isset($jsOptions)) {
$attr = array_merge($attr, $jsOptions);
}

Expand Down

0 comments on commit cdc8b3c

Please sign in to comment.