From 387f5db6b8d493514ee19998f7a4f69ad7316f0d Mon Sep 17 00:00:00 2001 From: Stephen J Carnam Date: Wed, 9 Aug 2023 12:56:08 -0700 Subject: [PATCH] wip --- hooks/pluginable.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hooks/pluginable.php b/hooks/pluginable.php index 60e6351..7cc8a45 100644 --- a/hooks/pluginable.php +++ b/hooks/pluginable.php @@ -840,7 +840,7 @@ function str_starts_with($haystack, $needle) { // Get plugin version via trusted command $hcpp->add_action( 'hcpp_invoke_plugin', function( $args ) { - if ( $args[0] == 'get_plugin_version' ) { + if ( $args[0] == 'hcpp_get_plugin_version' ) { $plugin = $args[1]; $version = shell_exec( 'cd "' . $plugin . '" && git describe --tags --abbrev=0' ); echo $version; @@ -914,7 +914,7 @@ function str_starts_with($haystack, $needle) { // Extract version if git repo $version = ''; if ( file_exists( $p . '/.git' ) ) { - $version = trim( $hcpp->run( 'invoke-plugin get_plugin_version ' . escapeshellarg( $p ) ) ); + $version = trim( $hcpp->run( 'invoke-plugin hcpp_get_plugin_version ' . escapeshellarg( $p ) ) ); $version = trim( $version ); } if ( is_dir( $p ) && ($p[0] != '.') ) {