cvs: phd /include PhDHelper.class.php

From: Date: Sun, 25 Nov 2007 13:14:48 +0000
Subject: cvs: phd /include PhDHelper.class.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-438@lists.php.net to get a copy of this message
bjori Sun Nov 25 13:14:48 2007 UTC Modified files: /phd/include PhDHelper.class.php Log: MFB(rsync): 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.8&diff_format=u Index: phd/include/PhDHelper.class.php diff -u phd/include/PhDHelper.class.php:1.7 phd/include/PhDHelper.class.php:1.8 --- phd/include/PhDHelper.class.php:1.7 Mon Oct 1 21:58:00 2007 +++ phd/include/PhDHelper.class.php Sun Nov 25 13:14:48 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.8 2007/11/25 13:14:48 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 (#438) next »