Minor fixes

This commit is contained in:
alxy 2014-05-15 22:32:56 +02:00
parent ef2ea60061
commit 8cc375939f
1 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ trait AssetMaker
$cssPath = $this->getAssetPath($name);
if (isset($this->controller))
$this->controller->addCss($cssPath);
$this->controller->addCss($cssPath, $attributes);
if (substr($cssPath, 0, 1) == '/')
$cssPath = Request::getBaseUrl() . $cssPath;
@ -139,7 +139,7 @@ trait AssetMaker
$rssPath = $this->getAssetPath($name);
if (isset($this->controller))
$this->controller->addRss($rssPath);
$this->controller->addRss($rssPath, $attributes);
if (substr($rssPath, 0, 1) == '/')
$rssPath = Request::getBaseUrl() . $rssPath;