Skip to content

Commit

Permalink
plugin_get() fails to use the default argument
Browse files Browse the repository at this point in the history
Fixes a bug that prevents defaulting to current plugin if
plugin_get() is called without arguments.

Fixes #21707

Signed-off-by: Damien Regad <dregad@mantisbt.org>
  • Loading branch information
val-kulkov authored and dregad committed Sep 21, 2016
1 parent 595136f commit 06b44c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/plugin_api.php
Expand Up @@ -117,7 +117,7 @@ function plugin_get( $p_basename = null ) {
trigger_error( ERROR_PLUGIN_NOT_REGISTERED, ERROR );
}

return $g_plugin_cache[$p_basename];
return $g_plugin_cache[$t_current];
}

/**
Expand Down

0 comments on commit 06b44c9

Please sign in to comment.