Skip to content

Commit 93a31c7

Browse files
committed
refactor for hcpp_render_body, hcpp_render_panel
1 parent 588ec2a commit 93a31c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nodebb.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function __construct() {
2020
$hcpp->add_action( 'hcpp_csrf_verified', [ $this, 'hcpp_csrf_verified' ] ); // Initial POST
2121
$hcpp->add_action( 'hcpp_invoke_plugin', [ $this, 'setup' ] );
2222
$hcpp->add_action( 'priv_add_database', [ $this, 'priv_add_database' ] );
23-
$hcpp->add_action( 'hcpp_render_page', [ $this, 'hcpp_render_page' ] );
23+
$hcpp->add_action( 'hcpp_render_body', [ $this, 'hcpp_render_body' ] );
2424
}
2525

2626
// Intercept form submission to flag database creation
@@ -120,7 +120,7 @@ public function setup( $args ) {
120120
}
121121

122122
// Customize the install page
123-
public function hcpp_render_page( $args ) {
123+
public function hcpp_render_body( $args ) {
124124
global $hcpp;
125125
if ( $args['page'] !== 'setup_webapp') return $args;
126126
if ( strpos( $_SERVER['REQUEST_URI'], '?app=NodeBB' ) === false ) return $args;

0 commit comments

Comments
 (0)