From 065adbe39e61c2b6daa550f2b3b9f634c4db5fdd Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 16 Dec 2004 22:42:56 +0000 Subject: woops! its str_replace not replace. --- usr/local/www/pkg_mgr_install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr') diff --git a/usr/local/www/pkg_mgr_install.php b/usr/local/www/pkg_mgr_install.php index df311c0..6ffebb9 100755 --- a/usr/local/www/pkg_mgr_install.php +++ b/usr/local/www/pkg_mgr_install.php @@ -396,7 +396,7 @@ function add_text_to_file($file, $text) { global $fd_log; fwrite($fd_log, "Adding needed text items:\n"); $filecontents = exec_command_and_return_text("cat " . $file); - $textTMP = replace($text, "", $filecontents); + $textTMP = str_replace($text, "", $filecontents); $text .= $textTMP . $text; fwrite($fd_log, $text . "\n"); $fd = fopen($file, "w"); -- cgit v1.1