aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/install
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2018-01-07 16:59:14 +0100
committerMarc Alexander <admin@m-a-styles.de>2018-01-07 16:59:14 +0100
commit77b275181aeddf43e1077d06abce11a9722bb85a (patch)
tree763217246e4df1f69d6612c0ed1397bc05fbec74 /phpBB/phpbb/install
parente4fc82bee55c72d545515b4ef89ecf66c4a7c837 (diff)
downloadforums-77b275181aeddf43e1077d06abce11a9722bb85a.tar
forums-77b275181aeddf43e1077d06abce11a9722bb85a.tar.gz
forums-77b275181aeddf43e1077d06abce11a9722bb85a.tar.bz2
forums-77b275181aeddf43e1077d06abce11a9722bb85a.tar.xz
forums-77b275181aeddf43e1077d06abce11a9722bb85a.zip
[prep-release-3.2.2] Add 3.1.12 to build and fix display of download box
Diffstat (limited to 'phpBB/phpbb/install')
-rw-r--r--phpBB/phpbb/install/module/update_filesystem/task/diff_files.php4
-rw-r--r--phpBB/phpbb/install/module/update_filesystem/task/download_updated_files.php7
2 files changed, 6 insertions, 5 deletions
diff --git a/phpBB/phpbb/install/module/update_filesystem/task/diff_files.php b/phpBB/phpbb/install/module/update_filesystem/task/diff_files.php
index 7114e60ba1..2f6048b4fd 100644
--- a/phpBB/phpbb/install/module/update_filesystem/task/diff_files.php
+++ b/phpBB/phpbb/install/module/update_filesystem/task/diff_files.php
@@ -208,7 +208,7 @@ class diff_files extends task_base
foreach ($update_files as $type => $files)
{
- if (count($files) < 1)
+ if (empty($files))
{
unset($update_files[$type]);
}
@@ -226,7 +226,7 @@ class diff_files extends task_base
foreach ($update_files as $type => $files)
{
- if (count($files) < 1)
+ if (empty($files))
{
unset($update_files[$type]);
}
diff --git a/phpBB/phpbb/install/module/update_filesystem/task/download_updated_files.php b/phpBB/phpbb/install/module/update_filesystem/task/download_updated_files.php
index 2fc756c20a..4d7f0e0cdf 100644
--- a/phpBB/phpbb/install/module/update_filesystem/task/download_updated_files.php
+++ b/phpBB/phpbb/install/module/update_filesystem/task/download_updated_files.php
@@ -86,7 +86,8 @@ class download_updated_files extends task_base
{
$file_update_info = $this->installer_config->get('update_files', array());
- if (count($file_update_info) > 0)
+ // Display download box only if the archive won't be empty
+ if (!empty($file_update_info) && !(isset($file_update_info['delete']) && count($file_update_info) == 1))
{
// Render download box
$this->iohandler->add_download_link(
@@ -101,12 +102,12 @@ class download_updated_files extends task_base
'update_recheck_files_submit' => array(
'label' => 'UPDATE_RECHECK_UPDATE_FILES',
'type' => 'submit',
- 'is_secondary' => count($file_update_info) < 1,
+ 'is_secondary' => empty($file_update_info),
),
'database_update_submit' => array(
'label' => 'UPDATE_CONTINUE_UPDATE_PROCESS',
'type' => 'submit',
- 'disabled' => count($file_update_info) > 0,
+ 'disabled' => !empty($file_update_info),
),
));