diff --git a/src/mibew/libs/classes/Mibew/Style/ChatStyle.php b/src/mibew/libs/classes/Mibew/Style/ChatStyle.php index 032a094a..6f35b316 100644 --- a/src/mibew/libs/classes/Mibew/Style/ChatStyle.php +++ b/src/mibew/libs/classes/Mibew/Style/ChatStyle.php @@ -50,14 +50,13 @@ class ChatStyle extends AbstractHandlebarsPoweredStyle implements StyleInterface public function render($template_name, $data = array()) { // Pass additional variables to template - $data['mibewRoot'] = MIBEW_WEB_ROOT; $data['mibewVersion'] = MIBEW_VERSION; $data['currentLocale'] = get_current_locale(); $locale_info = get_locale_info(get_current_locale()); $data['rtl'] = $locale_info && $locale_info['rtl']; - $data['stylePath'] = MIBEW_WEB_ROOT . '/' . $this->getFilesPath(); + $data['stylePath'] = $this->getFilesPath(); $data['styleName'] = $this->getName(); return $this->getHandlebars()->render($template_name, $data); diff --git a/src/mibew/libs/classes/Mibew/Style/PageStyle.php b/src/mibew/libs/classes/Mibew/Style/PageStyle.php index d9ea0127..7bb93f76 100644 --- a/src/mibew/libs/classes/Mibew/Style/PageStyle.php +++ b/src/mibew/libs/classes/Mibew/Style/PageStyle.php @@ -50,14 +50,13 @@ class PageStyle extends AbstractHandlebarsPoweredStyle implements StyleInterface public function render($template_name, $data = array()) { // Pass additional variables to template - $data['mibewRoot'] = MIBEW_WEB_ROOT; $data['mibewVersion'] = MIBEW_VERSION; $data['currentLocale'] = get_current_locale(); $locale_info = get_locale_info(get_current_locale()); $data['rtl'] = $locale_info && $locale_info['rtl']; - $data['stylePath'] = MIBEW_WEB_ROOT . '/' . $this->getFilesPath(); + $data['stylePath'] = $this->getFilesPath(); $data['styleName'] = $this->getName(); return $this->getHandlebars()->render($template_name, $data); diff --git a/src/mibew/styles/dialogs/default/templates_src/server_side/chat.handlebars b/src/mibew/styles/dialogs/default/templates_src/server_side/chat.handlebars index 6d7589e3..a396e4b8 100644 --- a/src/mibew/styles/dialogs/default/templates_src/server_side/chat.handlebars +++ b/src/mibew/styles/dialogs/default/templates_src/server_side/chat.handlebars @@ -84,7 +84,7 @@ style: '{{styleName}}', mibewBasePath: '{{mibewBasePath}}', mibewBaseUrl: '{{mibewBaseUrl}}', - stylePath: '{{stylePath}}', + stylePath: '{{mibewBasePath}}/{{stylePath}}', company: { name: '{{#jsString}}{{company.name}}{{/jsString}}', chatLogoURL: '{{company.chatLogoURL}}'