mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-23 06:35:45 -07:00
Update updater.php
This commit is contained in:
parent
108ac21873
commit
998cf52364
1 changed files with 4 additions and 0 deletions
|
@ -54,6 +54,10 @@ if (\z4kn4fein\SemVer\Version::equal($latestVersion, $currentVersion)) {
|
||||||
if (\z4kn4fein\SemVer\Version::greaterThan($latestVersion, $previousVersion) &&
|
if (\z4kn4fein\SemVer\Version::greaterThan($latestVersion, $previousVersion) &&
|
||||||
\z4kn4fein\SemVer\Version::lessThanOrEqual($version, $latestVersion)) {
|
\z4kn4fein\SemVer\Version::lessThanOrEqual($version, $latestVersion)) {
|
||||||
$dump_path = ''; // todo...
|
$dump_path = ''; // todo...
|
||||||
|
if (!is_file($dump_path) || !is_readable($dump_path)) {
|
||||||
|
bb_die(''); // todo...
|
||||||
|
}
|
||||||
|
|
||||||
$temp_line = '';
|
$temp_line = '';
|
||||||
foreach (file($dump_path) as $line) {
|
foreach (file($dump_path) as $line) {
|
||||||
if (str_starts_with($line, '--') || $line == '') {
|
if (str_starts_with($line, '--') || $line == '') {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue