]> git.mxchange.org Git - friendica.git/commitdiff
move <div> to the register.tpl
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Mon, 13 Jan 2014 13:40:26 +0000 (14:40 +0100)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Mon, 13 Jan 2014 13:40:26 +0000 (14:40 +0100)
mod/register.php
view/templates/register.tpl

index c00d2315ceef4a637fc2f9e755a86a875110cf32..5e011cb9a94a0edd358cb1aa1ccdb974e80a52e7 100644 (file)
@@ -264,7 +264,7 @@ function register_content(&$a) {
                '$realpeople' => $realpeople,
                '$regtitle'  => t('Registration'),
                '$registertext' =>((x($a->config,'register_text'))
-                       ? '<div class="error-message">' . bbcode($a->config['register_text']) . '</div>'
+                       ? bbcode($a->config['register_text'])
                        : "" ),
                '$fillwith'  => $fillwith,
                '$fillext'   => $fillext,
index ff650e24700af25481d2c980a73c22709edad2bc..4b74e54f70b1457c3abd525872750a48530fc89c 100644 (file)
@@ -1,15 +1,11 @@
-{{*
- *     AUTOMATICALLY GENERATED TEMPLATE
- *     DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
- *
- *}}
 <h3>{{$regtitle}}</h3>
 
 <form action="register" method="post" id="register-form">
 
        <input type="hidden" name="photo" value="{{$photo}}" />
 
-       {{$registertext}}
+       {{if $registertext != ""}}<div class="error-message">'{{$registertext}} '</div>'{{/if}}
+
 
        <p id="register-realpeople">{{$realpeople}}</p>