mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 19:05:55 +00:00
add plugin updates checker into normal updates checker
This commit is contained in:
@@ -394,7 +394,7 @@ class RPC extends Handler_Protected {
|
||||
}
|
||||
|
||||
function checkforupdates() {
|
||||
$rv = [];
|
||||
$rv = ["changeset" => [], "plugins" => []];
|
||||
|
||||
$git_timestamp = false;
|
||||
$git_commit = false;
|
||||
@@ -411,10 +411,12 @@ class RPC extends Handler_Protected {
|
||||
if ($git_timestamp < (int)$content["changeset"]["timestamp"] &&
|
||||
$git_commit != $content["changeset"]["id"]) {
|
||||
|
||||
$rv = $content["changeset"];
|
||||
$rv["changeset"] = $content["changeset"];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$rv["plugins"] = Pref_Prefs::_get_updated_plugins();
|
||||
}
|
||||
|
||||
print json_encode($rv);
|
||||
|
||||
Reference in New Issue
Block a user