From 3a613e85651b4f7e36cb8c1d9476309c1b5282f1 Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Tue, 26 Nov 2013 17:33:05 +0100 Subject: [PATCH] allow setting css rel explicitly used e.g. for less client side compiling --- framework/yii/helpers/BaseHtml.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/framework/yii/helpers/BaseHtml.php b/framework/yii/helpers/BaseHtml.php index eb29670..6f8e4e5 100644 --- a/framework/yii/helpers/BaseHtml.php +++ b/framework/yii/helpers/BaseHtml.php @@ -191,7 +191,9 @@ class BaseHtml */ public static function cssFile($url, $options = []) { - $options['rel'] = 'stylesheet'; + if (!isset($options['rel'])) { + $options['rel'] = 'stylesheet'; + } $options['href'] = static::url($url); return static::tag('link', '', $options); }