Skip to content

Commit

Permalink
fix github source names in combined view source list
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmunro committed Oct 17, 2018
1 parent c83e701 commit b73ecb1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/github/modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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));
}
}
}
Expand Down

0 comments on commit b73ecb1

Please sign in to comment.