From 2e8cc0674acbfc0c4ba6d2b08e22f0fd2fea9329 Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Mon, 8 Sep 2014 16:34:11 +0400 Subject: [PATCH] Do not use MIBEW_WEB_ROOT in pageAddCSS event --- Plugin.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Plugin.php b/Plugin.php index c0fe763..698d0f0 100644 --- a/Plugin.php +++ b/Plugin.php @@ -118,7 +118,8 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi */ public function addCustomCss(&$args) { - $args['css'][] = MIBEW_WEB_ROOT . '/' . $this->getFilesPath() . '/css/styles.css'; + $args['css'][] = $args['request']->getBasePath() + . '/' . $this->getFilesPath() . '/css/styles.css'; } /**