Skip to content

Commit

Permalink
Move gauge_form.php to files directory
Browse files Browse the repository at this point in the history
Use plugin_file_path() instead of hardcoded include.

Fixes #32
  • Loading branch information
dregad committed May 23, 2020
1 parent 40d02e3 commit 27df7e5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GaugeSupport.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function menuLinks($p_event) {
}

function renderBugSnippet($p_event, $bugid) {
include 'plugins/' . plugin_get_current() . '/pages/gauge_form.php';
include plugin_file_path( 'gauge_form.php', $this->basename );
}

function schema() {
Expand Down
File renamed without changes.

0 comments on commit 27df7e5

Please sign in to comment.