Skip to content

Commit

Permalink
Fix to the Html::css helper that will implode an array of media types
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisJordan committed May 4, 2009
1 parent 2291880 commit 7d6bea6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions recess/recess/framework/helpers/Html.class.php
Expand Up @@ -76,6 +76,9 @@ public static function anchor($uri, $title = NULL, $attributes = NULL) {
* @return string
*/
public static function css($style, $media = FALSE) {
if(is_array($media)) {
$media = implode(', ', $media);
}
return html::link($style, 'stylesheet', 'text/css', '.css', $media);
}

Expand Down

0 comments on commit 7d6bea6

Please sign in to comment.