From 147e75412ffae480f048e0d8f35b2349179142ea Mon Sep 17 00:00:00 2001 From: myvesta <38690722+myvesta@users.noreply.github.com> Date: Sun, 30 Aug 2020 05:15:23 +0200 Subject: [PATCH] Update string.php --- func/string.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/func/string.php b/func/string.php index e2937beb..c94f85a2 100644 --- a/func/string.php +++ b/func/string.php @@ -5,7 +5,7 @@ function myvesta_replace_in_file($find, $replace, $file) { $buf=file_get_contents($file); - if (strpos($buf, $find)===false) return myvesta_throw_error (MYVESTA_ERROR_STRING_DOES_NOT_EXISTS, "String '$find' not found"); + if (strpos($buf, $find)===false) return myvesta_throw_error (MYVESTA_ERROR_STRING_NOT_FOUND, "String '$find' not found"); $buf=str_replace($find, $replace, $buf); $r=file_put_contents($file, $buf);