diff --git a/hooks/pluginable.php b/hooks/pluginable.php index 161e448..6fdc2e2 100644 --- a/hooks/pluginable.php +++ b/hooks/pluginable.php @@ -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