summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2006-05-07 12:13:33 +0200
committerAndreas Gohr <andi@splitbrain.org>2006-05-07 12:13:33 +0200
commit3aee4c27813a30e720d3ad1fbcbd2e372a88573a (patch)
tree133a229e3ab17cb7249bdcb30a76c12ec0349985 /lib
parent15c394af375029974595fcd96feeadcb4e7005b8 (diff)
downloadrpg-3aee4c27813a30e720d3ad1fbcbd2e372a88573a.tar.gz
rpg-3aee4c27813a30e720d3ad1fbcbd2e372a88573a.tar.bz2
changed all occurances of rename() to io_rename()
darcs-hash:20060507101333-7ad00-e687d797fbee26e0b0bc7741ff8a1af496c101bf.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/plugins/config/settings/config.class.php4
1 files changed, 2 insertions, 2 deletions
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;
}