mirror of
https://github.com/myvesta/vesta
synced 2025-07-06 04:51:54 -07:00
Update string.php
This commit is contained in:
parent
a2be18cc18
commit
147e75412f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue