From 3aee4c27813a30e720d3ad1fbcbd2e372a88573a Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sun, 7 May 2006 12:13:33 +0200 Subject: changed all occurances of rename() to io_rename() darcs-hash:20060507101333-7ad00-e687d797fbee26e0b0bc7741ff8a1af496c101bf.gz --- lib/plugins/config/settings/config.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/plugins') diff --git a/lib/plugins/config/settings/config.class.php b/lib/plugins/config/settings/config.class.php index 0b93b882d..e51f65814 100644 --- a/lib/plugins/config/settings/config.class.php +++ b/lib/plugins/config/settings/config.class.php @@ -89,11 +89,11 @@ if (!class_exists('configuration')) { // backup current file (remove any existing backup) if (@file_exists($file) && $backup) { if (@file_exists($file.'.bak')) @unlink($file.'.bak'); - if (!@rename($file, $file.'.bak')) return false; + if (!io_rename($file, $file.'.bak')) return false; } if (!$fh = @fopen($file, 'wb')) { - @rename($file.'.bak', $file); // problem opening, restore the backup + io_rename($file.'.bak', $file); // problem opening, restore the backup return false; } -- cgit v1.2.3