mirror of
https://github.com/Mibew/mibew.git
synced 2025-02-01 05:44:41 +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
|
// Prepare to output html
|
||||||
start_html_output();
|
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
|
// Pass additional variables to template
|
||||||
$page['mibewRoot'] = MIBEW_WEB_ROOT;
|
$data['mibewRoot'] = MIBEW_WEB_ROOT;
|
||||||
$page['mibewVersion'] = MIBEW_VERSION;
|
$data['mibewVersion'] = MIBEW_VERSION;
|
||||||
$page['currentLocale'] = CURRENT_LOCALE;
|
$data['currentLocale'] = CURRENT_LOCALE;
|
||||||
$page['rtl'] = (getlocal("localedirection") == 'rtl');
|
$data['rtl'] = (getlocal("localedirection") == 'rtl');
|
||||||
$page['stylePath'] = MIBEW_WEB_ROOT . '/' . $this->filesPath();
|
$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