mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 20:25:57 +00:00
images moved to subdirectory, updated TODO
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user