From f19b4ed9e1f67467a28dd0303d523cbf05e399c2 Mon Sep 17 00:00:00 2001 From: Steffen Lange Date: Sat, 21 Jun 2025 17:17:34 +0200 Subject: [PATCH] DokuWiki: use git releases --- modules/DokuWiki.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/DokuWiki.php b/modules/DokuWiki.php index 969e822..135e868 100644 --- a/modules/DokuWiki.php +++ b/modules/DokuWiki.php @@ -5,8 +5,8 @@ class DokuWiki extends PatchBase { parent::__construct('Andreas Gohr', 'DokuWiki', 'https://download.dokuwiki.org/'); } function check() : bool { - if ($this->fetch('https://www.dokuwiki.org/changes')) - return $this->parse('/Release ([\d-]+[a-z]? (\"|\xE2\x80\x9C)[A-Za-z ]+(\"|\xE2\x80\x9D))/'); + if ($this->fetch_json('https://api.github.com/repos/dokuwiki/dokuwiki/releases/latest')) + return $this->parse_json('tag_name'); return false; } }