stop loop after adding all the contents
This commit is contained in:
parent
07b3a025a5
commit
38e24f4642
|
|
@ -83,6 +83,8 @@ class Hook
|
|||
foreach ((array) $urls as $url) {
|
||||
$event->addContent("<link rel=\"stylesheet\" href=\"$url\">");
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
}, $priority);
|
||||
|
|
@ -99,6 +101,8 @@ class Hook
|
|||
foreach ((array) $urls as $url) {
|
||||
$event->addContent("<script src=\"$url\"></script>");
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
}, $priority);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user