[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [12783] error handling
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [12783] error handling |
Date: |
Tue, 24 Feb 2015 11:07:41 +0000 |
Revision: 12783
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12783
Author: sigurdne
Date: 2015-02-24 11:07:41 +0000 (Tue, 24 Feb 2015)
Log Message:
-----------
error handling
Modified Paths:
--------------
trunk/phpgwapi/inc/class.xslttemplates.inc.php
Modified: trunk/phpgwapi/inc/class.xslttemplates.inc.php
===================================================================
--- trunk/phpgwapi/inc/class.xslttemplates.inc.php 2015-02-23 23:39:43 UTC
(rev 12782)
+++ trunk/phpgwapi/inc/class.xslttemplates.inc.php 2015-02-24 11:07:41 UTC
(rev 12783)
@@ -394,6 +394,7 @@
$xsl->loadXML($this->xsldata);
// Configure the transformer
+ libxml_use_internal_errors(true);
$proc = new XSLTProcessor;
$proc->registerPHPFunctions();
$proc->importStyleSheet($xsl); // attach the xsl rules
@@ -415,7 +416,10 @@
echo '<div class="error">';
echo $message;
echo '</div>';
- _debug_array(libxml_get_last_error());
+ $errors = libxml_get_errors();
+ _debug_array($errors);
+ libxml_clear_errors();
+
echo "<h2>xml-data</h2>";
$this->list_lineno($this->xmldata,
true);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [12783] error handling,
Sigurd Nes <=