[Scummvm-cvs-logs] SF.net SVN: scummvm:[35199] web/trunk/include/screenshots.php
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Mon Dec 1 22:30:48 CET 2008
Revision: 35199
http://scummvm.svn.sourceforge.net/scummvm/?rev=35199&view=rev
Author: fingolfin
Date: 2008-12-01 21:30:47 +0000 (Mon, 01 Dec 2008)
Log Message:
-----------
Be more forgiving when screenshots.csv is missing
Modified Paths:
--------------
web/trunk/include/screenshots.php
Modified: web/trunk/include/screenshots.php
===================================================================
--- web/trunk/include/screenshots.php 2008-12-01 21:13:02 UTC (rev 35198)
+++ web/trunk/include/screenshots.php 2008-12-01 21:30:47 UTC (rev 35199)
@@ -34,21 +34,21 @@
global $file_root;
+ $screenshots = array();
+ $scrcatnums = array();
+ $scr_table = array();
+
if(!is_readable($fname)) {
echo "No read permission for $fname !";
- exit;
+ return;
}
@$fp = fopen($fname, 'r');
if(!$fp) {
echo "Could not open file $fname !";
- exit;
+ return;
}
- $screenshots = array();
- $scrcatnums = array();
- $scr_table = array();
-
while (!feof($fp)) {
$line = trim(fgets($fp));
if (strlen($line) == 0) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list