Pass style name to operator pages' templates

This commit is contained in:
Dmitriy Simushev 2014-02-14 10:29:19 +00:00
parent 3ad8bfb380
commit 94d5689077

View File

@ -87,6 +87,7 @@ class PageStyle extends AbstractStyle implements StyleInterface
$data['currentLocale'] = CURRENT_LOCALE;
$data['rtl'] = (getlocal("localedirection") == 'rtl');
$data['stylePath'] = MIBEW_WEB_ROOT . '/' . $this->filesPath();
$data['styleName'] = $this->name();
echo($this->templateEngine->render($template_name, $data));
}