diff --git a/formats/AtomFormat.php b/formats/AtomFormat.php index e677471e..044e433f 100644 --- a/formats/AtomFormat.php +++ b/formats/AtomFormat.php @@ -15,7 +15,7 @@ class AtomFormat extends FormatAbstract{ $extraInfos = $this->getExtraInfos(); $title = $this->xml_encode($extraInfos['name']); - $uri = !empty($extraInfos['uri']) ? $extraInfos['uri'] : 'https://github.com/RSS-Bridge/rss-bridge'; + $uri = !empty($extraInfos['uri']) ? $extraInfos['uri'] : REPOSITORY; $uriparts = parse_url($uri); if(!empty($extraInfos['icon'])) { diff --git a/formats/MrssFormat.php b/formats/MrssFormat.php index 7a27a03f..9110e020 100644 --- a/formats/MrssFormat.php +++ b/formats/MrssFormat.php @@ -18,7 +18,7 @@ class MrssFormat extends FormatAbstract { if(!empty($extraInfos['uri'])) { $uri = $this->xml_encode($extraInfos['uri']); } else { - $uri = 'https://github.com/RSS-Bridge/rss-bridge'; + $uri = REPOSITORY; } $uriparts = parse_url($uri); diff --git a/lib/Exceptions.php b/lib/Exceptions.php index 24849bd4..32b33f2b 100644 --- a/lib/Exceptions.php +++ b/lib/Exceptions.php @@ -19,7 +19,8 @@ function buildGitHubIssueQuery($title, $body, $labels = null, $maintainer = null } // Add title and body - $uri = 'https://github.com/rss-bridge/rss-bridge/issues/new?title=' + $uri = REPOSITORY + . 'issues/new?title=' . urlencode($title) . '&body=' . urlencode($body);