From: Hypolite Petovan Date: Fri, 26 Oct 2018 12:13:31 +0000 (-0400) Subject: Declare missing `$lang` for default template in App->runFrontend X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4bcd2d77087b329251eb3b6a776187545e0c03d6;p=friendica.git Declare missing `$lang` for default template in App->runFrontend --- diff --git a/src/App.php b/src/App.php index 5fadab1f23..ff118ac725 100644 --- a/src/App.php +++ b/src/App.php @@ -1951,6 +1951,9 @@ class App // Theme templates expect $a as an App instance $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 require_once $template; }