changes on it

From: Date: Wed, 11 Apr 2001 18:14:20 +0000
Subject: changes on it
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-206@lists.php.net to get a copy of this message
hello, i ve made some changes on the errorhandling in it_error.php and it.php. if there is any interest, somebody with write access can commit. regards, tobias =================================================================== Index: IT_Error.php =================================================================== RCS file: /repository/php4/pear/HTML/IT_Error.php,v retrieving revision 1.1 diff -r1.1 IT_Error.php 44c44 < function Cache_Error($msg, $file = __FILE__, $line = __LINE__) { --- > function IT_Error($msg, $file = __FILE__, $line = __LINE__) { 46c46 < $this->PEAR_Error(sprintf("%s [%s on line %d].", $msg, $file, $line)); --- > return $this->PEAR_Error(sprintf("%s [%s on line %d].", $msg, $file, $line)); =================================================================== Index: IT.php =================================================================== RCS file: /repository/php4/pear/HTML/IT.php,v retrieving revision 1.5 diff -r1.5 IT.php 357c357,360 < print $this->get($block); --- > $data = &$this->get($block); > if (is_object($data)) > return $data; > print $data; 374,377c377,378 < if (!isset($this->blocklist[$block])) { < new IT_Error("The block '$block' was not found in the template.", __FILE__, __LINE__); < return ""; < } --- > if (!isset($this->blocklist[$block])) > return new IT_Error("The block '$block' was not found in the template.", __FILE__, __LINE__); 643c644,645 < $template = $this->getfile($filename); --- > if (PEAR::isError( $template = $this->getfile($filename))) > return $template; 777,778c779 < new IT_Error("Can't read '$filename'.", __FILE__, __LINE__); < return ""; --- > return new IT_Error("Can't read '$filename'.", __FILE__, __LINE__); ===================================================================

« previous php.pear.dev (#206) next »