Skip to content

Commit

Permalink
Already patch notice
Browse files Browse the repository at this point in the history
  • Loading branch information
Steveorevo committed Jul 31, 2023
1 parent e51b99f commit 1abe149
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hooks/pluginable.php
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,10 @@ public function patch_file( $file, $search, $replace, $retry_tabs = false ) {
$content = str_replace( $search, $replace, $content );
file_put_contents( $file, $content );
$this->log( "Patched $file with $replace");
}else{
if ( strstr( $content, $replace ) ) {
$this->log( "Already patched $file with $replace" );
}
}

// Report patch_file failures, Hestia version may not be compatible
Expand Down

0 comments on commit 1abe149

Please sign in to comment.