mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/13133] Rename $ok variable
PHPBB3-13133
This commit is contained in:
parent
d285363700
commit
9aa8f44489
1 changed files with 4 additions and 4 deletions
|
@ -191,19 +191,19 @@ class twig extends \phpbb\template\base
|
|||
$template_path = $path . 'template/';
|
||||
$theme_path = $path . 'theme/';
|
||||
|
||||
$ok = false;
|
||||
$is_valid_dir = false;
|
||||
if (is_dir($template_path))
|
||||
{
|
||||
$ok = true;
|
||||
$is_valid_dir = true;
|
||||
$paths[] = $template_path;
|
||||
}
|
||||
if (is_dir($theme_path))
|
||||
{
|
||||
$ok = true;
|
||||
$is_valid_dir = true;
|
||||
$paths[] = $theme_path;
|
||||
}
|
||||
|
||||
if ($ok)
|
||||
if ($is_valid_dir)
|
||||
{
|
||||
// Add the base style directory as a safe directory
|
||||
$this->twig->getLoader()->addSafeDirectory($path);
|
||||
|
|
Loading…
Add table
Reference in a new issue