Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Steveorevo committed Aug 9, 2023
1 parent 9942e79 commit 9ca0660
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hooks/pluginable.php
Original file line number Diff line number Diff line change
Expand Up @@ -849,14 +849,14 @@ function str_starts_with($haystack, $needle) {
});

// Invoke plugin enabled after plugin is renamed and loaded
$hcpp->add_action( 'hcpp_invoke_plugin', function( $args ) ) {
$hcpp->add_action( 'hcpp_invoke_plugin', function( $args ) {
if ( $args[0] == 'hcpp_plugin_enabled' ) {
$plugin = $args[1];
global $hcpp;
$hcpp->do_action( 'hcpp_plugin_enabled', $plugin );
}
return $args;
}
});

// List plugins in HestiaCP's Configure Server UI
$hcpp->add_action( 'hcpp_render_page', function( $args ) {
Expand Down

0 comments on commit 9ca0660

Please sign in to comment.