htmlable t&c

This commit is contained in:
Shish 2010-01-05 19:06:04 +00:00
parent 62862994db
commit 4e7f135024
2 changed files with 6 additions and 3 deletions

View File

@ -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) {

View File

@ -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>";}