Declare missing $lang
for default template in App->runFrontend
This commit is contained in:
parent
d38f25ebba
commit
4bcd2d7708
|
@ -1951,6 +1951,9 @@ class App
|
||||||
// Theme templates expect $a as an App instance
|
// Theme templates expect $a as an App instance
|
||||||
$a = $this;
|
$a = $this;
|
||||||
|
|
||||||
|
// Used as is in view/php/default.php
|
||||||
|
$lang = Core\L10n::getCurrentLang();
|
||||||
|
|
||||||
/// @TODO Looks unsafe (remote-inclusion), is maybe not but Core\Theme::getPathForFile() uses file_exists() but does not escape anything
|
/// @TODO Looks unsafe (remote-inclusion), is maybe not but Core\Theme::getPathForFile() uses file_exists() but does not escape anything
|
||||||
require_once $template;
|
require_once $template;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue