mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 15:27:42 +02:00
[feature/delete-auto-logins] using loop for errors
instead of hardcoding html code into ERROR variable, we use errors array and use loop in template file. PHPBB3-9647
This commit is contained in:
@@ -661,7 +661,7 @@ class ucp_profile
|
|||||||
while ($row = $db->sql_fetchrow($result))
|
while ($row = $db->sql_fetchrow($result))
|
||||||
{
|
{
|
||||||
$template->assign_block_vars('sessions', array(
|
$template->assign_block_vars('sessions', array(
|
||||||
'ERROR' => (sizeof($error)) ? implode('<br />', $error) : '',
|
'errors' => $error,
|
||||||
|
|
||||||
'KEY' => $row['key_id'],
|
'KEY' => $row['key_id'],
|
||||||
'IP' => $row['last_ip'],
|
'IP' => $row['last_ip'],
|
||||||
|
@@ -7,7 +7,13 @@
|
|||||||
<div class="inner">
|
<div class="inner">
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<!-- IF ERROR --><p class="error">{ERROR}</p><!-- ENDIF -->
|
<!-- IF .errors -->
|
||||||
|
<p class="error">
|
||||||
|
<!-- BEGIN errors -->
|
||||||
|
{errors} <br />
|
||||||
|
<!-- END errors -->
|
||||||
|
</p>
|
||||||
|
<!-- ENDIF -->
|
||||||
<!-- IF .sessions -->
|
<!-- IF .sessions -->
|
||||||
<p>{L_PROFILE_AUTOLOGIN_KEYS}</p>
|
<p>{L_PROFILE_AUTOLOGIN_KEYS}</p>
|
||||||
<table>
|
<table>
|
||||||
|
Reference in New Issue
Block a user