From b73ecb1cbe6f487f8c4a355b1e623bbeb99b3e58 Mon Sep 17 00:00:00 2001 From: Jason Munro Date: Wed, 17 Oct 2018 12:21:23 -0500 Subject: [PATCH] fix github source names in combined view source list --- modules/github/modules.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/github/modules.php b/modules/github/modules.php index dcac6ee461..0bf38c8aab 100644 --- a/modules/github/modules.php +++ b/modules/github/modules.php @@ -356,7 +356,7 @@ public function process() { $this->out('message_list_since', $this->user_config->get('github_since_setting', DEFAULT_SINCE)); $this->out('per_source_limit', $this->user_config->get('github_limit_setting', DEFAULT_PER_SOURCE)); foreach ($repos as $repo) { - $this->append('data_sources', array('callback' => 'load_github_data', 'type' => 'github', 'name' => 'Github', 'id' => $repo)); + $this->append('data_sources', array('callback' => 'load_github_data', 'type' => 'github', 'name' => $repo, 'id' => $repo)); } } else { @@ -370,14 +370,14 @@ public function process() { $this->out('list_path', $path, false); } $this->out('custom_list_controls', ' '); - $this->append('data_sources', array('callback' => 'load_github_data', 'type' => 'github', 'name' => 'Github', 'id' => $repo)); + $this->append('data_sources', array('callback' => 'load_github_data', 'type' => 'github', 'name' => $repo, 'id' => $repo)); } } elseif ($this->page == 'message_list' && ($path == 'combined_inbox' || $path == 'unread')) { $github_list = true; if (!$excluded || $path == 'combined_inbox') { foreach ($repos as $repo) { - $this->append('data_sources', array('callback' => 'load_github_data', 'type' => 'github', 'name' => 'Github', 'id' => $repo)); + $this->append('data_sources', array('callback' => 'load_github_data', 'type' => 'github', 'name' => $repo, 'id' => $repo)); } } }