use get_version instead of get_int for versions

This commit is contained in:
Shish
2020-10-29 00:57:58 +00:00
parent b9e1ce1b8d
commit b4c4de58a2
5 changed files with 22 additions and 28 deletions

View File

@ -24,7 +24,7 @@ class Upgrade extends Extension
file_put_contents("data/index.php", "<?php\n// Silence is golden...\n");
}
if ($config->get_int("db_version") < 1) {
if ($this->get_version("db_version") < 1) {
$this->set_version("db_version", 2);
}