cvs: pear /Services_Weather Weather.php

From: Date: Fri, 30 Apr 2004 20:05:05 +0000
Subject: cvs: pear /Services_Weather Weather.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-19044@lists.php.net to get a copy of this message
eru Fri Apr 30 16:05:05 2004 EDT Modified files: /pear/Services_Weather Weather.php Log: o Changed error message, added basename() for $file parameter http://cvs.php.net/diff.php/pear/Services_Weather/Weather.php?r1=1.29&r2=1.30&ty=u Index: pear/Services_Weather/Weather.php diff -u pear/Services_Weather/Weather.php:1.29 pear/Services_Weather/Weather.php:1.30 --- pear/Services_Weather/Weather.php:1.29 Fri Apr 30 15:55:20 2004 +++ pear/Services_Weather/Weather.php Fri Apr 30 16:05:04 2004 @@ -16,7 +16,7 @@ // | Authors: Alexander Wirtz <alex@pc4p.net> | // +----------------------------------------------------------------------+ // -// $Id: Weather.php,v 1.29 2004/04/30 19:55:20 eru Exp $ +// $Id: Weather.php,v 1.30 2004/04/30 20:05:04 eru Exp $ /** * @package Services_Weather @@ -221,10 +221,11 @@ // really needed. include_once "PEAR.php"; - $message = "Services_Weather: ".Services_Weather::_errorMessage($code); + $message = "Services_Weather"; if ($file != "" && $line > 0) { - $message .= " (".$file.":".$line.")"; + $message .= " (".basename($file).":".$line.")"; } + $message .= ": ".Services_Weather::_errorMessage($code); return PEAR::raiseError($message, $code, PEAR_ERROR_RETURN, E_USER_NOTICE, "Services_Weather_Error", null, false); }

« previous php.pear.cvs (#19044) next »