Skip to content

Commit 7c802a7

Browse files
authored
Merge pull request #276 from iMattPro/updates
Prep 1.6.13
2 parents 4124695 + e2e3b5f commit 7c802a7

File tree

6 files changed

+11
-14
lines changed

6 files changed

+11
-14
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# QuickInstall Changelog
22

3+
## Version 1.6.13
4+
- [Fix] Restored functionality to QI's version checking.
5+
36
## Version 1.6.12
47
- [Fix] Fixed a fatal PHP error that could occur when creating new boards from the latest build of phpBB 4.
58
- [Fix] Fixed a fatal PHP error that could occur when creating new boards under PHP 8.

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "phpbb/quickinstall",
33
"description": "QuickInstall is a developer tool used to create multiple phpBB3 installations.",
44
"homepage": "https://www.phpbb.com/customise/db/official_tool/phpbb3_quickinstall",
5-
"version": "1.6.12",
5+
"version": "1.6.13",
66
"license": "GPL-2.0-only",
77
"authors": [
88
{

includes/qi.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ public static function get_update()
487487
return $version_helper
488488
->set_current_version(self::current_version())
489489
->force_stability('stable')
490-
->set_file_location('www.phpbb.com', '/customise/db/official_tool/phpbb3_quickinstall', 'version_check')
490+
->set_file_location('www.phpbb.com', '/customise/db/official_tool/phpbb3_quickinstall', 'version_check', true)
491491
->get_update();
492492
}
493493

includes/qi_version_helper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public function get_update()
154154
try
155155
{
156156
$updates = $this->get_suggested_updates();
157-
return array_shift($updates);
157+
return array_pop($updates);
158158
}
159159
catch (RuntimeException $e)
160160
{

language/en/qi.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@
301301
'TIME_SETTINGS' => 'Time settings',
302302
'TOGGLE_NAVIGATION' => 'Toggle navigation',
303303

304-
'UPDATE_AVAILABLE' => 'A new version is available.',
304+
'UPDATE_AVAILABLE' => 'An update is available.',
305305

306306
'VERSION_CHECK_TITLE' => 'QI %1$s is available. You are using QI %2$s. Click to download the latest version.',
307307

style/overall_header.twig

+4-10
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,12 @@
2222
{% if U_VERSION_CHECK_URL %}
2323
<div class="toast-container position-fixed top-0 end-0 p-3 mt-5" style="z-index: 1045">
2424
<div id="qiUpdateToast" class="toast" role="alert" aria-live="assertive" aria-atomic="true">
25-
<div class="toast-header">
26-
<strong class="me-auto">{{ lang('UPDATE_AVAILABLE') }}</strong>
25+
<div class="toast-body d-flex align-items-center justify-content-between">
26+
<span>{{ lang('UPDATE_AVAILABLE') }}</span>
27+
<a href="{{ U_VERSION_CHECK_URL }}" class="btn btn-danger btn-sm ms-3" title="{{ VERSION_CHECK_TITLE }}">{{ lang('DOWNLOAD') }}</a>
28+
<span class="vr mx-3"></span>
2729
<button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
2830
</div>
29-
<div class="toast-body">
30-
<a href="{{ U_VERSION_CHECK_URL }}" class="btn btn-danger" title="{{ VERSION_CHECK_TITLE }}">
31-
<svg class="bi text-white" width="16" height="16" fill="currentColor">
32-
<use xlink:href="{{ QI_ROOT_PATH }}style/assets/img/bootstrap-icons.svg#download"/>
33-
</svg>
34-
{{ lang('DOWNLOAD') }} &nbsp; <span class="badge rounded-pill bg-warning text-dark">{{ VERSION_CHECK_CURRENT }}</span>
35-
</a>
36-
</div>
3731
</div>
3832
</div>
3933
{% endif %}

0 commit comments

Comments
 (0)