DokuWiki: use git releases
This commit is contained in:
parent
9cdf91384a
commit
f19b4ed9e1
1 changed files with 2 additions and 2 deletions
|
|
@ -5,8 +5,8 @@ class DokuWiki extends PatchBase {
|
||||||
parent::__construct('Andreas Gohr', 'DokuWiki', 'https://download.dokuwiki.org/');
|
parent::__construct('Andreas Gohr', 'DokuWiki', 'https://download.dokuwiki.org/');
|
||||||
}
|
}
|
||||||
function check() : bool {
|
function check() : bool {
|
||||||
if ($this->fetch('https://www.dokuwiki.org/changes'))
|
if ($this->fetch_json('https://api.github.com/repos/dokuwiki/dokuwiki/releases/latest'))
|
||||||
return $this->parse('/Release ([\d-]+[a-z]? (\"|\xE2\x80\x9C)[A-Za-z ]+(\"|\xE2\x80\x9D))/');
|
return $this->parse_json('tag_name');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue