www/adium.im 889:9ed0bcba3e79: Silence file not found warnings f...

commits at adium.im commits at adium.im
Sat Nov 28 02:58:29 UTC 2015


details:	http://hg.adium.im/www/adium.im/rev/9ed0bcba3e79
revision:	889:9ed0bcba3e79
branch:		adiumx.com
author:		Frank Dowsett <wixardy at adium.im>
date:		Fri Nov 27 21:50:36 2015 -0500

Silence file not found warnings for delta cache files.

diffs (21 lines):

diff -r aaf0ec22a6c6 -r 9ed0bcba3e79 sparkle/appcast-nightly.php
--- a/sparkle/appcast-nightly.php	Wed May 27 18:09:50 2015 +0200
+++ b/sparkle/appcast-nightly.php	Fri Nov 27 21:50:36 2015 -0500
@@ -89,7 +89,7 @@
     }
     
     // file() keeps the newlines, we don't want them. Instead, use file_get_contents and explode it.
-    $nightlyData = explode("\n", file_get_contents(NIGHTLY_CACHE));
+    $nightlyData = explode("\n", @file_get_contents(NIGHTLY_CACHE));
 
     // The address to download the nightly.
     $nightlyURL = sprintf("http://%s/%s.dmg", NIGHTLY_HOST, $nightlyData[FILENAME]);
@@ -97,7 +97,7 @@
     // The address for the changelog.
     $tracURL = sprintf("http://hg.adium.im/$repo/log?rev=%s", str_replace("r", "", $nightlyData[REVISION]));
 
-    $deltaData = explode("\n", file_get_contents(DELTA_CACHE));
+    $deltaData = explode("\n", @file_get_contents(DELTA_CACHE));
 
 ?><?php echo('<?');?>xml version="1.0" encoding="UTF-8"?>
 <rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle">




More information about the commits mailing list