[ticket/11768] Added some default template parameters

PHPBB3-11768
This commit is contained in:
JoshyPHP 2015-03-29 23:00:29 +02:00
parent 09c19718c0
commit 1d90daf969

View file

@ -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'],
));
} }
/** /**