Skip to content

Commit aac9ead

Browse files
committed
wip
1 parent b3a66ad commit aac9ead

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ghost.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ public function is_url_available( $url ) {
138138
// Customize the install page
139139
public function render_page( $args ) {
140140
global $hcpp;
141-
if ( false === (strpos( $_SERVER['REQUEST_URI'], '?app=Ghost' ) !== false && $args['page'] == 'setup_webapp' ) ) return $args;
141+
if ( $args['page'] !== 'setup_webapp') return $args;
142+
if ( strpos( $_SERVER['REQUEST_URI'], '?app=Ghost' ) === false ) return $args;
142143
$content = $args['content'];
143144
$user = trim($args['user'], "'");
144145
$shell = $hcpp->run( "list-user $user json")[$user]['SHELL'];

0 commit comments

Comments
 (0)