Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Steveorevo committed Jul 25, 2023
1 parent c3b0167 commit 1329749
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vscode.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function __construct() {
$hcpp->add_action( 'hcpp_new_domain_ready', [ $this, 'hcpp_new_domain_ready' ] );
$hcpp->add_action( 'priv_delete_user', [ $this, 'priv_delete_user' ] );
$hcpp->add_action( 'hcpp_invoke_plugin', [ $this, 'hcpp_invoke_plugin' ] );
$hcpp->add_action( 'render_page', [ $this, 'render_page' ] );
$hcpp->add_action( 'hcpp_render_page', [ $this, 'hcpp_render_page' ] );
}

// Trigger setup and configuration when domain is created.
Expand Down Expand Up @@ -187,7 +187,7 @@ public function configure( $user, $domain ) {
}

// Add VSCode Server icon to our web domain list and button to domain edit pages.
public function render_page( $args ) {
public function hcpp_render_page( $args ) {
if ( $args['page'] == 'list_web' ) {
$args = $this->render_list_web( $args );
}
Expand Down

0 comments on commit 1329749

Please sign in to comment.