]> git.mxchange.org Git - friendica.git/commitdiff
Declare missing `$lang` for default template in App->runFrontend
authorHypolite Petovan <hypolite@mrpetovan.com>
Fri, 26 Oct 2018 12:13:31 +0000 (08:13 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Fri, 26 Oct 2018 12:13:31 +0000 (08:13 -0400)
src/App.php

index 5fadab1f236239866e58ca3a02b97444e33dce52..ff118ac72550792328c7305f2d393d659c868bff 100644 (file)
@@ -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;
        }