Fix for inline CSS and JS when pipelining enabled

This commit is contained in:
Andy Miller
2014-11-05 21:30:44 -07:00
parent 8cd962e0f3
commit d0cded11fb

View File

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