mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-18 09:18:52 +00:00
[ticket/11768] Added some default template parameters
PHPBB3-11768
This commit is contained in:
parent
09c19718c0
commit
1d90daf969
1 changed files with 7 additions and 2 deletions
|
@ -158,8 +158,13 @@ class renderer implements \phpbb\textformatter\renderer_interface
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the style id
|
// Set this user's style id and other parameters
|
||||||
$this->renderer->setParameter('STYLE_ID', $user->style['style_id']);
|
$this->renderer->setParameters(array(
|
||||||
|
'S_IS_BOT' => $user->data['is_bot'],
|
||||||
|
'S_REGISTERED_USER' => $user->data['is_registered'],
|
||||||
|
'S_USER_LOGGED_IN' => ($user->data['user_id'] != ANONYMOUS),
|
||||||
|
'STYLE_ID' => $user->style['style_id'],
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue