diff --git a/StubsController.php b/StubsController.php index c524004..790b6a7 100644 --- a/StubsController.php +++ b/StubsController.php @@ -78,6 +78,8 @@ public function actionIndex($app) $content = str_replace('{stubs}', $stubs, $this->getTemplate()); $content = str_replace('{time}', date(DATE_ISO8601), $content); - file_put_contents($path, $content); + if($content!=@file_get_contents($path)) { + file_put_contents($path, $content); + } } }