Update string.php

This commit is contained in:
myvesta 2020-08-30 05:09:18 +02:00 committed by GitHub
parent 3c899178b4
commit 3919840fc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
<?php <?php
function myvesta_replace_in_file($file, $find, $replace) { function myvesta_replace_in_file($find, $replace, $file) {
if (!file_exists($file)) return myvesta_throw_error (MYVESTA_ERROR_FILE_DOES_NOT_EXISTS, "File '$file' not found"); if (!file_exists($file)) return myvesta_throw_error (MYVESTA_ERROR_FILE_DOES_NOT_EXISTS, "File '$file' not found");
$buf=file_get_contents($file); $buf=file_get_contents($file);