cvs: phd(rsync) /include PhDHelper.class.php

From: Date: Sun, 25 Nov 2007 13:08:29 +0000
Subject: cvs: phd(rsync) /include PhDHelper.class.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-437@lists.php.net to get a copy of this message
bjori Sun Nov 25 13:08:29 2007 UTC Modified files: (Branch: rsync) /phd/include PhDHelper.class.php Log: Don't throw a warning on not-found-translation-file http://cvs.php.net/viewvc.cgi/phd/include/PhDHelper.class.php?r1=1.7&r2=1.7.2.1&diff_format=u Index: phd/include/PhDHelper.class.php diff -u phd/include/PhDHelper.class.php:1.7 phd/include/PhDHelper.class.php:1.7.2.1 --- phd/include/PhDHelper.class.php:1.7 Mon Oct 1 21:58:00 2007 +++ phd/include/PhDHelper.class.php Sun Nov 25 13:08:29 2007 @@ -1,5 +1,5 @@ <?php -/* $Id: PhDHelper.class.php,v 1.7 2007/10/01 21:58:00 bjori Exp $ */ +/* $Id: PhDHelper.class.php,v 1.7.2.1 2007/11/25 13:08:29 bjori Exp $ */ class PhDHelper { private $IDs = array(); @@ -37,7 +37,7 @@ $filename = dirname(__FILE__) ."/langs/$lang.xml"; $r = new XMLReader; - if (!$r->open($filename)) { + if (!file_exists($filename) || !$r->open($filename)) { if ($lang == "en") { throw new Exception("Cannot open $filename"); }

« previous php.doc.cvs (#437) next »