Merge branch 'magicmatcherIssueList' into 'master'
Add Magicmatcher issue list See merge request !20
This commit is contained in:
commit
76c0f22393
3 changed files with 21 additions and 1 deletions
11
Template.php
11
Template.php
|
@ -17,6 +17,7 @@ class Template {
|
|||
protected $plugins = array(
|
||||
'sqlite' => null,
|
||||
'tagging' => null,
|
||||
'magicmatcher' => null,
|
||||
);
|
||||
|
||||
/**
|
||||
|
@ -74,6 +75,7 @@ class Template {
|
|||
$this->plugins['sqlite'] = plugin_load('helper', 'sqlite');
|
||||
if($this->plugins['sqlite']) {
|
||||
$this->plugins['tagging'] = plugin_load('helper', 'tagging');
|
||||
$this->plugins['magicmatcher'] = plugin_load('syntax', 'magicmatcher_issuelist');
|
||||
}
|
||||
$this->plugins['tplinc'] = plugin_load('helper', 'tplinc');
|
||||
}
|
||||
|
@ -106,7 +108,14 @@ class Template {
|
|||
);
|
||||
}
|
||||
|
||||
// fixme add magicmatcher info
|
||||
if ($this->plugins['magicmatcher']) {
|
||||
$tabs[] = array(
|
||||
'id' => 'spr__tab-issues',
|
||||
'label' => tpl_getLang('tab_issues'),
|
||||
'tab' => $this->plugins['magicmatcher']->getIssueListHTML(),
|
||||
'count' => $this->plugins['magicmatcher']->getCountIssues(),
|
||||
);
|
||||
}
|
||||
|
||||
return $tabs;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue