Browse Source

Merge pull request #6031 from MrPetovan/bug/add-missing-lang-default-template

Declare missing `$lang` for default template in App->runFrontend
pull/6033/head
Michael Vogel 3 years ago
committed by GitHub
parent
commit
f32ea03911
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/App.php

3
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;
}

Loading…
Cancel
Save