mirror of
https://github.com/getgrav/grav.git
synced 2026-05-05 18:46:22 +02:00
Fix for inline CSS and JS when pipelining enabled
This commit is contained in:
@@ -338,12 +338,10 @@ class Assets
|
||||
foreach ($this->css_no_pipeline as $file) {
|
||||
$output .= '<link href="'.$file['asset'].'"'.$attributes.' />'."\n";
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
||||
foreach($this->css as $file) {
|
||||
$output .= '<link href="' . $file['asset'] . '"' . $attributes . ' />' . "\n";
|
||||
} else {
|
||||
foreach($this->css as $file) {
|
||||
$output .= '<link href="' . $file['asset'] . '"' . $attributes . ' />' . "\n";
|
||||
}
|
||||
}
|
||||
|
||||
// Render Inline CSS
|
||||
@@ -387,12 +385,10 @@ class Assets
|
||||
foreach ($this->js_no_pipeline as $file) {
|
||||
$output .= '<script src="'.$file['asset'].'"'.$attributes.' ></script>'."\n";
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
||||
foreach($this->js as $file) {
|
||||
$output .= '<script src="' . $file['asset'] . '"' . $attributes . ' ></script>' . "\n";
|
||||
} else {
|
||||
foreach($this->js as $file) {
|
||||
$output .= '<script src="' . $file['asset'] . '"' . $attributes . ' ></script>' . "\n";
|
||||
}
|
||||
}
|
||||
|
||||
// Render Inline JS
|
||||
|
||||
Reference in New Issue
Block a user