summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-08-25 11:28:54 +0100
committerAndrew Dolgov <[email protected]>2005-08-25 11:28:54 +0100
commite695fdc83ef295fd18e9757ff5b12f3d9a8d213c (patch)
tree984283eb6a8b7eb99656a8cc1c9eee484c1c0303 /functions.php
parent899244ef4d850f9b273dfef24bcc327ac14fe8f5 (diff)
images moved to subdirectory, updated TODO
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/functions.php b/functions.php
index 4dafe4578..0d668eda6 100644
--- a/functions.php
+++ b/functions.php
@@ -35,7 +35,7 @@
$icon_file = ICONS_DIR . "/$feed.ico";
if (!file_exists($icon_file)) {
-
+
error_reporting(0);
$r = fopen($icon_url, "r");
error_reporting (E_ERROR | E_WARNING | E_PARSE);
@@ -53,7 +53,11 @@
fclose($r);
fclose($t);
- rename($tmpfname, $icon_file);
+ error_reporting(0);
+ if (!rename($tmpfname, $icon_file)) {
+ unlink($tmpfname);
+ }
+ error_reporting (E_ERROR | E_WARNING | E_PARSE);
}
}