cvs: pear /Text_Wiki/Text Wiki.php
| From: | Justin Patrin | Date: | Thu, 02 Mar 2006 20:58:49 +0000 |
| Subject: | cvs: pear /Text_Wiki/Text Wiki.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-38869@lists.php.net to get a copy of this message | ||
justinpatrin Thu Mar 2 20:58:49 2006 UTC
Modified files:
/pear/Text_Wiki/Text Wiki.php
Log:
Switch to Text_Wiki error handling for factory and singleton
http://cvs.php.net/viewcvs.cgi/pear/Text_Wiki/Text/Wiki.php?r1=1.44&r2=1.45&diff_format=u
Index: pear/Text_Wiki/Text/Wiki.php
diff -u pear/Text_Wiki/Text/Wiki.php:1.44 pear/Text_Wiki/Text/Wiki.php:1.45
--- pear/Text_Wiki/Text/Wiki.php:1.44 Thu Mar 2 04:04:59 2006
+++ pear/Text_Wiki/Text/Wiki.php Thu Mar 2 20:58:49 2006
@@ -9,7 +9,7 @@
* @package Text_Wiki
* @author Paul M. Jones <pmjones@php.net>
* @license http://www.gnu.org/copyleft/lesser.html LGPL
License 2.1
- * @version CVS: $Id: Wiki.php,v 1.44 2006/03/02 04:04:59 justinpatrin Exp $
+ * @version CVS: $Id: Wiki.php,v 1.45 2006/03/02 20:58:49 justinpatrin Exp $
* @link http://pear.php.net/package/Text_Wiki
*/
@@ -409,7 +409,7 @@
static $only = array();
if (!isset($only[$parser])) {
$ret =& Text_Wiki::factory($parser, $rules);
- if (PEAR::isError($ret)) {
+ if (Text_Wiki::isError($ret)) {
return $ret;
}
$only[$parser] =& $ret;
@@ -442,12 +442,12 @@
}*/
$fp = @fopen($file, 'r', true);
if ($fp === false) {
- return PEAR::raiseError('Could not find file '.$file.' in
include_path');
+ return Text_Wiki::error('Could not find file '.$file.' in
include_path');
}
fclose($fp);
include_once($file);
if (!class_exists($class)) {
- return PEAR::raiseError('Class '.$class.' does not exist after
including '.$file);
+ return Text_Wiki::error('Class '.$class.' does not exist after
including '.$file);
}
}