Skip to content

Commit

Permalink
Updates from v2.8 are note possible anymorem, closes #1618
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed Feb 9, 2020
1 parent 435017c commit f4dade7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions phpmyfaq/setup/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@
<div class="col">
<p>This update script will work <strong>only</strong> for the following versions:</p>
<ul>
<li>phpMyFAQ 2.8.x (out of support since end of 2016)</li>
<li>phpMyFAQ 2.9.x</li>
<li>phpMyFAQ 3.0.x</li>
</ul>
</div>
<div class="col">
Expand All @@ -169,15 +169,16 @@
<li>phpMyFAQ 2.5.x</li>
<li>phpMyFAQ 2.6.x</li>
<li>phpMyFAQ 2.7.x</li>
<li>phpMyFAQ 2.8.x</li>
</ul>
</div>
</div>

<div class="row">
<div class="col">
<?php
// We only support updates from 2.8+
if (version_compare($version, '2.8.0', '>')) {
// We only support updates from 2.9+
if (version_compare($version, '2.9.0', '>')) {
printf(
'<div class="alert alert-success text-center" role="alert">Your current phpMyFAQ version: %s %s</div>',
$version,
Expand All @@ -188,7 +189,7 @@
'<div class="alert alert-danger text-center" role="alert">Your current phpMyFAQ version: %s</div>',
$version
);
echo '<p>Please update to the latest phpMyFAQ 2.8 version first.</p>';
echo '<p>Please update to the latest phpMyFAQ 2.9 version first.</p>';
}
if ('hash' !== PMF_ENCRYPTION_TYPE) {
printf(
Expand Down

0 comments on commit f4dade7

Please sign in to comment.