Skip to content

Commit 82ccd69

Browse files
committed
feat: corrected version branch (#2492)
1 parent e38773b commit 82ccd69

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

phpmyfaq/admin/assets/templates/dashboard.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,15 +171,15 @@
171171
<div class="alert alert-danger">
172172
{{ adminDashboardLatestVersionMessage }}
173173
<a href="{{ adminDashboardHomepage }}" target="_blank">phpmyfaq.de</a>:
174-
<strong>phpMyFAQ {{ adminDashboardVersions.current }}</strong>
174+
<strong>phpMyFAQ {{ adminDashboardVersions.stable }}</strong>
175175
<hr>
176176
{{ adminDashboardShouldUpdateMessage }}
177177
</div>
178178
{% else %}
179179
<div class="alert alert-info">
180180
{{ adminDashboardLatestVersionMessage }}
181181
<a href="{{ adminDashboardHomepage }}" target="_blank">phpmyfaq.de</a>:
182-
<strong>phpMyFAQ {{ adminDashboardVersions.current }}</strong>
182+
<strong>phpMyFAQ {{ adminDashboardVersions.stable }}</strong>
183183
</div>
184184
{% endif %}
185185

phpmyfaq/admin/dashboard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
$versions = [];
103103
try {
104104
$versions = $api->getVersions();
105-
if (-1 === version_compare($versions['installed'], $versions['current'])) {
105+
if (-1 === version_compare($versions['installed'], $versions['stable'])) {
106106
$shouldUpdate = Translation::get('ad_you_should_update');
107107
}
108108
} catch (DecodingExceptionInterface | TransportExceptionInterface | Exception $e) {

0 commit comments

Comments
 (0)