From 6dca59bddc99dbce8113156a98dc8b610981301d Mon Sep 17 00:00:00 2001 From: rboren Date: Tue, 8 Feb 2005 08:01:59 +0000 Subject: [PATCH] Suppress safe mode restriction warnings. git-svn-id: http://svn.automattic.com/wordpress/trunk@2243 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/upgrade-functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/upgrade-functions.php b/wp-admin/upgrade-functions.php index 960b0f54b..f4ba437b0 100644 --- a/wp-admin/upgrade-functions.php +++ b/wp-admin/upgrade-functions.php @@ -543,7 +543,7 @@ function make_site_theme_from_oldschool($theme_name, $template) { else $oldpath = ABSPATH; - if (! copy("$oldpath/$oldfile", "$site_dir/$newfile")) + if (! @copy("$oldpath/$oldfile", "$site_dir/$newfile")) return false; chmod("$site_dir/$newfile", 0777); @@ -596,7 +596,7 @@ function make_site_theme_from_default($theme_name, $template) { $files = array('index.php', 'comments.php', 'comments-popup.php', 'footer.php', 'header.php', 'sidebar.php', 'style.css'); foreach ($files as $file) { - if (! copy("$default_dir/$file", "$site_dir/$file")) + if (! @copy("$default_dir/$file", "$site_dir/$file")) return; chmod("$site_dir/$file", 0777);