Skip to content

Commit

Permalink
enabled event, after rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Steveorevo committed Aug 9, 2023
1 parent 26d0016 commit e100f5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/pluginable.php
Original file line number Diff line number Diff line change
Expand Up @@ -813,8 +813,8 @@ function str_starts_with($haystack, $needle) {
switch( $v ) {
case 'yes':
if ( file_exists( "/usr/local/hestia/plugins/$plugin.disabled") ) {
$hcpp->do_action( 'hcpp_plugin_enabled', $plugin );
rename( "/usr/local/hestia/plugins/$plugin.disabled", "/usr/local/hestia/plugins/$plugin" );
$hcpp->do_action( 'hcpp_plugin_enabled', $plugin );
}
$hcpp->run_install_scripts();
break;
Expand Down

0 comments on commit e100f5d

Please sign in to comment.