add bbcode support for the page register textfield (Bug #871)

This commit is contained in:
Tobias Diekershoff 2014-01-12 08:40:52 +01:00
parent 964f2bc4b1
commit c52ae17df4

View file

@ -1,6 +1,7 @@
<?php
require_once('include/email.php');
require_once('include/bbcode.php');
if(! function_exists('register_post')) {
function register_post(&$a) {
@ -263,7 +264,7 @@ function register_content(&$a) {
'$realpeople' => $realpeople,
'$regtitle' => t('Registration'),
'$registertext' =>((x($a->config,'register_text'))
? '<div class="error-message">' . $a->config['register_text'] . '</div>'
? '<div class="error-message">' . bbcode($a->config['register_text']) . '</div>'
: "" ),
'$fillwith' => $fillwith,
'$fillext' => $fillext,