Fix compatibility with PHP 5.4

This commit is contained in:
zhangrunyu
2022-01-13 10:14:15 +08:00
parent 8ab6050b34
commit 39e30fc64f
10 changed files with 77 additions and 35 deletions

View File

@@ -23,7 +23,7 @@
<?php if($removeCommands):?>
<div class='container mw-500px'>
<p><strong><?php echo $lang->extension->unremovedFiles;?></strong></p>
<code><?php echo join($removeCommands, '<br />');?></code>
<code><?php echo join('<br />', $removeCommands);?></code>
</div>
<?php endif;?>
<hr>

View File

@@ -26,7 +26,7 @@
<h3><?php echo $title;?></h3>
<?php if($removeCommands):?>
<p><strong><?php echo $lang->extension->unremovedFiles;?></strong></p>
<p><?php echo join($removeCommands, '<br />');?></p>
<p><?php echo join('<br />', $removeCommands);?></p>
<?php endif;?>
<p class='text-center'><?php echo html::commonButton($lang->extension->viewAvailable, 'onclick=parent.location.href="' . inlink('browse', 'type=available') . '"');?></p>
</div>

View File

@@ -51,7 +51,7 @@
if($removeCommands)
{
echo "<p class='strong'>{$lang->extension->unremovedFiles}</p>";
echo join($removeCommands, '<br />');
echo join('<br />', $removeCommands);
}
echo "<p class='text-center'>" . html::commonButton($lang->extension->viewAvailable, 'onclick=parent.location.href="' . inlink('browse', 'type=available') . '"') . '</p>';
?>