Commit e3f2a0d4 authored by Carl Schwan's avatar Carl Schwan 🚴

Fix bug for kdevelop

parent a0d3a151
Pipeline #34666 passed with stage
in 3 minutes and 34 seconds
This diff is collapsed.
......@@ -497,16 +497,16 @@ class AppData
public function getIrcChannels(): array
{
if (isset($this->raw['Custom']) && isset($this->raw['Custom']['KDE::irc'])) {
return $this->raw['Custom']['KDE::irc'];
return [$this->raw['Custom']['KDE::irc']];
} else if (isset($this->raw['X-KDE-IRC'])) {
$irc = $this->raw['X-KDE-IRC'];
if (is_array($irc)) {
return $irc;
} else {
return array($irc);
return [$irc];
}
} else {
return array("#kde");
return ["#kde"];
}
}
......@@ -546,7 +546,7 @@ class AppData
public function getMailingLists(): array
{
if (isset($this->raw['Custom']) && isset($this->raw['Custom']['KDE::mailinglist'])) {
return unifyMailingList($this->raw['Custom']['KDE::mailinglist']);
return [$this->unifyMailingList($this->raw['Custom']['KDE::mailinglist'])];
}
$ml = [];
if (isset($this->raw['X-KDE-MailingLists'])) {
......@@ -568,7 +568,7 @@ class AppData
public function getDevelMailingList(): ?string
{
if (isset($this->raw['Custom']) && isset($this->raw['Custom']['KDE::mailinglist-devel'])) {
return unifyMailingList($this->raw['Custom']['KDE::mailinglist-devel']);
return $this->unifyMailingList($this->raw['Custom']['KDE::mailinglist-devel']);
}
return null;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment