@@ -17,14 +17,14 @@ class NodeBB {
17
17
public function __construct () {
18
18
global $ hcpp ;
19
19
$ hcpp ->nodebb = $ this ;
20
- $ hcpp ->add_action ( 'csrf_verified ' , [ $ this , 'csrf_verified ' ] ); // Initial POST
20
+ $ hcpp ->add_action ( 'hcpp_csrf_verified ' , [ $ this , 'hcpp_csrf_verified ' ] ); // Initial POST
21
21
$ hcpp ->add_action ( 'hcpp_invoke_plugin ' , [ $ this , 'setup ' ] );
22
22
$ hcpp ->add_action ( 'priv_add_database ' , [ $ this , 'priv_add_database ' ] );
23
- $ hcpp ->add_action ( 'render_page ' , [ $ this , 'render_page ' ] );
23
+ $ hcpp ->add_action ( 'hcpp_render_page ' , [ $ this , 'hcpp_render_page ' ] );
24
24
}
25
25
26
26
// Intercept form submission to flag database creation
27
- public function csrf_verified () {
27
+ public function hcpp_csrf_verified () {
28
28
if ( isset ( $ _REQUEST ['app ' ] ) && $ _REQUEST ['app ' ] == 'NodeBB ' && isset ( $ _REQUEST ['webapp_database_create ' ] ) ) {
29
29
if ( isset ( $ _SESSION ['look ' ] ) ) {
30
30
touch ( '/tmp/nodebb_pgsql_ ' . $ _SESSION ['look ' ] );
@@ -120,7 +120,7 @@ public function setup( $args ) {
120
120
}
121
121
122
122
// Customize the install page
123
- public function render_page ( $ args ) {
123
+ public function hcpp_render_page ( $ args ) {
124
124
global $ hcpp ;
125
125
if ( $ args ['page ' ] !== 'setup_webapp ' ) return $ args ;
126
126
if ( strpos ( $ _SERVER ['REQUEST_URI ' ], '?app=NodeBB ' ) === false ) return $ args ;
0 commit comments