Skip to content

Commit e7877a1

Browse files
committed
[5.4] code cleanup
1 parent ad0404b commit e7877a1

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

components/com_users/tmpl/login/default_logout.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
</div>
2626
<?php endif; ?>
2727

28-
<?php if (($this->params->get('logoutdescription_show') == 1 && str_replace(' ', '', $this->params->get('logout_description', '')) != '') || $this->params->get('logout_image') != '') : ?>
28+
<?php if (($this->params->get('logoutdescription_show') == 1 && trim($this->params->get('logout_description', '')) != '') || $this->params->get('logout_image') != '') : ?>
2929
<div class="com-users-logout__description logout-description">
3030
<?php endif; ?>
3131

@@ -37,7 +37,7 @@
3737
<?php echo HTMLHelper::_('image', $this->params->get('logout_image'), empty($this->params->get('logout_image_alt')) && empty($this->params->get('logout_image_alt_empty')) ? false : $this->params->get('logout_image_alt'), ['class' => 'com-users-logout__image thumbnail float-end logout-image']); ?>
3838
<?php endif; ?>
3939

40-
<?php if (($this->params->get('logoutdescription_show') == 1 && str_replace(' ', '', $this->params->get('logout_description', '')) != '') || $this->params->get('logout_image') != '') : ?>
40+
<?php if (($this->params->get('logoutdescription_show') == 1 && trim($this->params->get('logout_description', '')) != '') || $this->params->get('logout_image') != '') : ?>
4141
</div>
4242
<?php endif; ?>
4343

templates/cassiopeia/offline.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
<?php if ($app->get('offline_image')) : ?>
112112
<?php echo HTMLHelper::_('image', $app->get('offline_image'), $sitename, [], false, 0); ?>
113113
<?php endif; ?>
114-
<?php if ($app->get('display_offline_message', 1) == 1 && str_replace(' ', '', $app->get('offline_message')) != '') : ?>
114+
<?php if ($app->get('display_offline_message', 1) == 1 && trim($app->get('offline_message')) != '') : ?>
115115
<p><?php echo $app->get('offline_message'); ?></p>
116116
<?php elseif ($app->get('display_offline_message', 1) == 2) : ?>
117117
<p><?php echo Text::_('JOFFLINE_MESSAGE'); ?></p>

templates/system/offline.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@
4242
<h1>
4343
<?php echo htmlspecialchars($app->get('sitename'), ENT_COMPAT, 'UTF-8'); ?>
4444
</h1>
45-
<?php if ($app->get('display_offline_message', 1) == 1 && str_replace(' ', '', $app->get('offline_message')) !== '') : ?>
45+
<?php if ($app->get('display_offline_message', 1) == 1 && trim($app->get('offline_message')) !== '') : ?>
4646
<p>
4747
<?php echo $app->get('offline_message'); ?>
4848
</p>
49-
<?php elseif ($app->get('display_offline_message', 1) == 2 && str_replace(' ', '', Text::_('JOFFLINE_MESSAGE')) !== '') : ?>
49+
<?php elseif ($app->get('display_offline_message', 1) == 2 && trim(Text::_('JOFFLINE_MESSAGE')) !== '') : ?>
5050
<p>
5151
<?php echo Text::_('JOFFLINE_MESSAGE'); ?>
5252
</p>

0 commit comments

Comments
 (0)