Permalink
Browse files

CHtml::cssFile() fix

  • Loading branch information...
1 parent be5241d commit a3bead9551b4c0db8894848b37d021ecb22eaf49 @creocoder creocoder committed Oct 6, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 framework/web/helpers/CHtml.php
@@ -270,9 +270,9 @@ public static function refresh($seconds, $url='')
*/
public static function cssFile($url,$media='')
{
- if($media!=='')
- $media=' media="'.$media.'"';
- return '<link rel="stylesheet" type="text/css" href="'.self::encode($url).'"'.$media.' />';
+ if($media==='')
+ $media=null;
+ return CHtml::linkTag('stylesheet','text/css',self::encode($url),$media);
}
/**

0 comments on commit a3bead9

Please sign in to comment.