Skip to content

Commit c3b0167

Browse files
committed
prefix action namespace
1 parent ae4d637 commit c3b0167

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

vscode.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ public function __construct() {
1818
global $hcpp;
1919
$hcpp->vscode = $this;
2020
$hcpp->add_action( 'priv_unsuspend_domain', [ $this, 'priv_unsuspend_domain' ] );
21-
$hcpp->add_action( 'new_web_domain_ready', [ $this, 'new_web_domain_ready' ] );
21+
$hcpp->add_action( 'hcpp_new_domain_ready', [ $this, 'hcpp_new_domain_ready' ] );
2222
$hcpp->add_action( 'priv_delete_user', [ $this, 'priv_delete_user' ] );
23-
$hcpp->add_action( 'invoke_plugin', [ $this, 'invoke_plugin' ] );
23+
$hcpp->add_action( 'hcpp_invoke_plugin', [ $this, 'hcpp_invoke_plugin' ] );
2424
$hcpp->add_action( 'render_page', [ $this, 'render_page' ] );
2525
}
2626

2727
// Trigger setup and configuration when domain is created.
28-
public function new_web_domain_ready( $args ) {
28+
public function hcpp_new_domain_ready( $args ) {
2929
global $hcpp;
3030
$user = $args[0];
3131
$domain = $args[1];
@@ -45,7 +45,7 @@ public function priv_unsuspend_domain( $args ) {
4545
}
4646

4747
// Return requests for the VSCode Server token for the given user.
48-
public function invoke_plugin( $args ) {
48+
public function hcpp_invoke_plugin( $args ) {
4949
if ( $args[0] !== 'vscode_get_token' ) return $args;
5050
$user = $args[1];
5151
echo file_get_contents( "/home/$user/.openvscode-server/data/token" );

0 commit comments

Comments
 (0)