core: Use REPOSITORY constant where applicable

This commit is contained in:
logmanoriginal 2018-11-05 19:05:59 +01:00
parent 1a00dfa412
commit 946e66e9df
3 changed files with 4 additions and 3 deletions

View file

@ -15,7 +15,7 @@ class AtomFormat extends FormatAbstract{
$extraInfos = $this->getExtraInfos(); $extraInfos = $this->getExtraInfos();
$title = $this->xml_encode($extraInfos['name']); $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); $uriparts = parse_url($uri);
if(!empty($extraInfos['icon'])) { if(!empty($extraInfos['icon'])) {

View file

@ -18,7 +18,7 @@ class MrssFormat extends FormatAbstract {
if(!empty($extraInfos['uri'])) { if(!empty($extraInfos['uri'])) {
$uri = $this->xml_encode($extraInfos['uri']); $uri = $this->xml_encode($extraInfos['uri']);
} else { } else {
$uri = 'https://github.com/RSS-Bridge/rss-bridge'; $uri = REPOSITORY;
} }
$uriparts = parse_url($uri); $uriparts = parse_url($uri);

View file

@ -19,7 +19,8 @@ function buildGitHubIssueQuery($title, $body, $labels = null, $maintainer = null
} }
// Add title and body // Add title and body
$uri = 'https://github.com/rss-bridge/rss-bridge/issues/new?title=' $uri = REPOSITORY
. 'issues/new?title='
. urlencode($title) . urlencode($title)
. '&body=' . '&body='
. urlencode($body); . urlencode($body);