diff --git a/laravel/html.php b/laravel/html.php
index 5a8aa7bc..731cf66a 100644
--- a/laravel/html.php
+++ b/laravel/html.php
@@ -56,9 +56,12 @@ class HTML {
*/
public static function style($url, $attributes = array())
{
- if ( ! array_key_exists('media', $attributes)) $attributes['media'] = 'all';
+ $defaults = array('media' => 'all', 'type' => 'text/css', 'rel' => 'stylesheet');
- $attributes = array_merge($attributes, array('rel' => 'stylesheet', 'type' => 'text/css'));
+ foreach ($defaults as $attribute => $default)
+ {
+ if ( ! array_key_exists($attribute, $attributes)) $attributes[$attribute] = $default;
+ }
return ''.PHP_EOL;
}