Browse Source

Declare missing `$lang` for default template in App->runFrontend

pull/6031/head
Hypolite Petovan 3 years ago
parent
commit
4bcd2d7708
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/App.php

+ 3
- 0
src/App.php View 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;
}


Loading…
Cancel
Save