Set the minimum revision to update

Due to the manual update from 41 to 42 revisions.
This commit is contained in:
Visman 2021-12-03 16:30:57 +07:00
parent 7a22d20d76
commit 1a12746217

View file

@ -157,10 +157,10 @@ class Update extends Admin
$e = __(['You are running error', 'PHP', \PHP_VERSION, $this->c->FORK_REVISION, self::PHP_MIN]);
}
// база не от ForkBB ????
// база не от ForkBB или старая ревизия
if (
null === $e
&& $this->c->config->i_fork_revision < 1
&& $this->c->config->i_fork_revision < 41
) {
$e = 'Version mismatch error';
}