mirror of
https://github.com/Mibew/mibew.git
synced 2025-01-31 21:34:42 +03:00
Remove unneeded $page variable from PageStyle::render
This commit is contained in:
parent
bb5fa8db5b
commit
3337aa8bb8
@ -81,18 +81,14 @@ class PageStyle extends AbstractStyle implements StyleInterface
|
||||
// Prepare to output html
|
||||
start_html_output();
|
||||
|
||||
// $page variable is used in included views files, so we need to create
|
||||
// it as an alias of $data argument.
|
||||
$page = $data;
|
||||
|
||||
// Pass additional variables to template
|
||||
$page['mibewRoot'] = MIBEW_WEB_ROOT;
|
||||
$page['mibewVersion'] = MIBEW_VERSION;
|
||||
$page['currentLocale'] = CURRENT_LOCALE;
|
||||
$page['rtl'] = (getlocal("localedirection") == 'rtl');
|
||||
$page['stylePath'] = MIBEW_WEB_ROOT . '/' . $this->filesPath();
|
||||
$data['mibewRoot'] = MIBEW_WEB_ROOT;
|
||||
$data['mibewVersion'] = MIBEW_VERSION;
|
||||
$data['currentLocale'] = CURRENT_LOCALE;
|
||||
$data['rtl'] = (getlocal("localedirection") == 'rtl');
|
||||
$data['stylePath'] = MIBEW_WEB_ROOT . '/' . $this->filesPath();
|
||||
|
||||
echo($this->templateEngine->render($template_name, $page));
|
||||
echo($this->templateEngine->render($template_name, $data));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user