Separate fetch and fetch_json helper funcs

This commit is contained in:
Steffen Lange 2021-02-21 18:57:10 +01:00
parent 4a613a0d3b
commit 62a9f6f0c8
56 changed files with 63 additions and 58 deletions

View file

@ -5,7 +5,7 @@ class Darktable extends PatchBase {
parent::__construct('Darktable Team', 'darktable', 'https://www.darktable.org/install/');
}
function check() : bool {
if ($this->fetch('https://api.github.com/repos/darktable-org/darktable/releases/latest', true))
if ($this->fetch_json('https://api.github.com/repos/darktable-org/darktable/releases/latest'))
return $this->parse_json('tag_name');
return false;
}