Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

A little refactoring

  • Loading branch information...
commit 2084bebbe31f87083a9756c3b6c30d10006f0899 1 parent 66cfbc7
@creocoder authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 framework/web/helpers/CHtml.php
View
4 framework/web/helpers/CHtml.php
@@ -270,9 +270,7 @@ public static function refresh($seconds, $url='')
*/
public static function cssFile($url,$media='')
{
- if($media==='')
- $media=null;
- return CHtml::linkTag('stylesheet','text/css',self::encode($url),$media);
+ return CHtml::linkTag('stylesheet','text/css',self::encode($url),$media!=='' ? $media : null);
}
/**

0 comments on commit 2084beb

Please sign in to comment.
Something went wrong with that request. Please try again.