stop loop after adding all the contents

This commit is contained in:
printempw 2017-01-08 16:12:28 +08:00
parent 07b3a025a5
commit 38e24f4642

View File

@ -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);