Fixed more template errors in order to get everything running with PHP 8.0

This commit is contained in:
azett 2020-12-31 23:05:42 +01:00
parent 83e1644c0f
commit 46b3bfb27b
3 changed files with 14 additions and 4 deletions

View File

@ -36,7 +36,7 @@
{/if} {/if}
{if $success} {if isset($success)}
{if $success < 0} {if $success < 0}
{assign var=class value=errors} {assign var=class value=errors}
{else} {else}

View File

@ -3,9 +3,19 @@
<form id="login" method="post" action="{$smarty.const.BLOG_BASEURL}login.php" enctype="multipart/form-data"> <form id="login" method="post" action="{$smarty.const.BLOG_BASEURL}login.php" enctype="multipart/form-data">
<fieldset><legend>{$lang.login.fieldset1}</legend> <fieldset><legend>{$lang.login.fieldset1}</legend>
<p><label for="user">{$lang.login.user}</label><br /> <p><label for="user">{$lang.login.user}</label><br />
<input {$error.user|notempty:'class="field-error"'} type="text" name="user" id="user" {if $smarty.post.user}value="{$smarty.post.user|wp_specialchars:true}"{/if} /></p> {if isset($error) && isset($error.user)}
<input {$error.user|notempty:'class="field-error"'} type="text" name="user" id="user" {if $smarty.post.user}value="{$smarty.post.user|wp_specialchars:true}"{/if} /></p>
{elseif isset($smarty.post.user)}
<input type="text" name="user" id="user" {if $smarty.post.user}value="{$smarty.post.user|wp_specialchars:true}"{/if} /></p>
{else}
<input type="text" name="user" id="user" /></p>
{/if}
<p><label for="pass">{$lang.login.pass}</label><br /> <p><label for="pass">{$lang.login.pass}</label><br />
<input type="password" {$error.pass|notempty:'class="field-error"'} name="pass" id="pass" /></p> {if isset($error) && isset($error.pass)}
<input type="password" {$error.pass|notempty:'class="field-error"'} name="pass" id="pass" /></p>
{else}
<input type="password" name="pass" id="pass" /></p>
{/if}
</fieldset> </fieldset>
<div class="buttonbar"> <div class="buttonbar">

View File

@ -7,7 +7,7 @@
<h3 class="title">{$subject}</h3> <h3 class="title">{$subject}</h3>
<div class="body"> <div class="body">
{if $rawcontent} {$content} {if isset($rawcontent) and $rawcontent} {$content}
{else} {include file=$content}{/if} {else} {include file=$content}{/if}
</div> </div>