Skip to content

Commit 03c4414

Browse files
committed
refactor
1 parent 8a6413c commit 03c4414

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nodered.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function __construct() {
1818
global $hcpp;
1919
$hcpp->nodered = $this;
2020
$hcpp->add_action( 'hcpp_invoke_plugin', array( $this, 'setup' ) );
21-
$hcpp->add_action( 'render_page', array( $this, 'render_page' ) );
21+
$hcpp->add_action( 'hcpp_render_page', array( $this, 'hcpp_render_page' ) );
2222
}
2323

2424
// Install Node-RED based on the given user options
@@ -86,7 +86,7 @@ public function setup( $args ) {
8686
}
8787

8888
// Custom install page
89-
public function render_page( $args ) {
89+
public function hcpp_render_page( $args ) {
9090
global $hcpp;
9191
if ( $args['page'] !== 'setup_webapp') return $args;
9292
if ( strpos( $_SERVER['REQUEST_URI'], '?app=NodeRED' ) === false ) return $args;

0 commit comments

Comments
 (0)