htmlable t&c
This commit is contained in:
parent
62862994db
commit
4e7f135024
@ -51,6 +51,7 @@ class UserPage extends SimpleExtension {
|
||||
$config->set_default_int("login_memory", 365);
|
||||
$config->set_default_string("avatar_host", "gravatar");
|
||||
$config->set_default_string("avatar_gravatar_options", "");
|
||||
$config->set_default_bool("login_tac_bbcode", true);
|
||||
}
|
||||
|
||||
public function onPageRequest(Event $event) {
|
||||
|
@ -41,9 +41,11 @@ class UserPageTheme extends Themelet {
|
||||
global $config;
|
||||
$tac = $config->get_string("login_tac", "");
|
||||
|
||||
$tfe = new TextFormattingEvent($tac);
|
||||
send_event($tfe);
|
||||
$tac = $tfe->formatted;
|
||||
if($config->get_bool("login_tac_bbcode")) {
|
||||
$tfe = new TextFormattingEvent($tac);
|
||||
send_event($tfe);
|
||||
$tac = $tfe->formatted;
|
||||
}
|
||||
|
||||
if(empty($tac)) {$html = "";}
|
||||
else {$html = "<p>$tac</p>";}
|
||||
|
Loading…
x
Reference in New Issue
Block a user