Skip to content

Commit

Permalink
style: use MantisBT plugin API
Browse files Browse the repository at this point in the history
Instead of hard-coded paths and names
  • Loading branch information
grv87 authored and dregad committed May 23, 2020
1 parent 78413ee commit 40d02e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GaugeSupport.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ function menuLinks($p_event) {
array(
'title' => plugin_lang_get( 'menu_link' ),
'access_level' => '',
'url' => 'plugin.php?page=GaugeSupport/issue_ranking',
'url' => plugin_page( 'issue_ranking', true ),
'icon' => 'fa-line-chart'
),
);
}

function renderBugSnippet($p_event, $bugid) {
include 'plugins/GaugeSupport/pages/gauge_form.php';
include 'plugins/' . plugin_get_current() . '/pages/gauge_form.php';
}

function schema() {
Expand Down

0 comments on commit 40d02e3

Please sign in to comment.