mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-10 02:36:38 +02:00
[ticket/11768] Added some default template parameters
PHPBB3-11768
This commit is contained in:
@@ -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'],
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user