handle missing update schema diff in update.php
This commit is contained in:
parent
e98bb24308
commit
9e21a5713f
|
@ -600,7 +600,7 @@ div.warning {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
div.warning img, div.notice img {
|
div.warning img, div.notice img, div.error img {
|
||||||
vertical-align : middle;
|
vertical-align : middle;
|
||||||
padding : 5px;
|
padding : 5px;
|
||||||
}
|
}
|
||||||
|
|
20
update.php
20
update.php
|
@ -82,12 +82,22 @@ function confirmOP() {
|
||||||
ksort($update_versions, SORT_NUMERIC);
|
ksort($update_versions, SORT_NUMERIC);
|
||||||
|
|
||||||
$latest_version = max(array_keys($update_versions));
|
$latest_version = max(array_keys($update_versions));
|
||||||
|
|
||||||
if ($version == $latest_version) {
|
if ($version == $latest_version) {
|
||||||
print "<p>".__("Tiny Tiny RSS database is up to date.")."</p>";
|
|
||||||
print "<form method=\"GET\" action=\"tt-rss.php\">
|
if ($version != SCHEMA_VERSION) {
|
||||||
<input type=\"submit\" value=\"".__("Return to Tiny Tiny RSS")."\">
|
print_error(__("Could not update database"));
|
||||||
</form>";
|
|
||||||
|
print "<p>" .
|
||||||
|
__("Could not find necessary schema file, need version:") .
|
||||||
|
" " . SCHEMA_VERSION . __(", found: ") . $latest_version . "</p>";
|
||||||
|
|
||||||
|
} else {
|
||||||
|
print "<p>".__("Tiny Tiny RSS database is up to date.")."</p>";
|
||||||
|
print "<form method=\"GET\" action=\"tt-rss.php\">
|
||||||
|
<input type=\"submit\" value=\"".__("Return to Tiny Tiny RSS")."\">
|
||||||
|
</form>";
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
11
utility.css
11
utility.css
|
@ -47,8 +47,17 @@ div.warning {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
div.warning img, div.notice img {
|
div.warning img, div.notice img, div.error img {
|
||||||
vertical-align : middle;
|
vertical-align : middle;
|
||||||
padding : 5px;
|
padding : 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div.error {
|
||||||
|
border : 1px solid #ff0000;
|
||||||
|
background : #ffcccc;
|
||||||
|
padding : 5px;
|
||||||
|
margin : 0px 0px 5px 0px;
|
||||||
|
font-size : 9pt;
|
||||||
|
width : 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue