? xml-watchdog.patch
? xml-watchdog_.patch
Index: xmlcontent.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/xmlcontent/xmlcontent.module,v
retrieving revision 1.7
diff -u -p -r1.7 xmlcontent.module
--- xmlcontent.module	14 Mar 2007 21:59:59 -0000	1.7
+++ xmlcontent.module	18 Mar 2009 20:31:03 -0000
@@ -86,7 +86,7 @@ function xmlcontent_nodeapi(&$node, $op,
       $schema_path = drupal_get_path('module', 'xmlcontent'). '/' . variable_get("xmlcontent_schema_path_$format",'');        
       if (!is_file($schema_path) && ($validation == 'xsd' or $validation == 'rng')) {
         $schema_path = null;
-        watchdog( 'xmlcontent', t('Validation required but no schema file'), WATCHDOG_WARNING );
+        watchdog('xmlcontent', 'Validation required but no schema file', array(), WATCHDOG_WARNING);
       }
       
       // initialize libxml error handling
@@ -200,19 +200,19 @@ function _xmlcontent_filter_settings($fo
  */
 function _xmlcontent_transform($xml, $path_to_xslt, $params = array()) {
   if (!$xml) {
-    watchdog('xmlcontent',"Empty XML content", WATCHDOG_WARNING);
+    watchdog('xmlcontent', "Empty XML content", array(), WATCHDOG_WARNING);
     return $xml;
   }
     
   // make sure that PHP has the required XSLT support, and failsafe if not
   if (!_xmlcontent_check_xml_support()) {
-    watchdog('xmlcontent',"XML/XSLT PHP support misconfigured", WATCHDOG_ERROR);
+    watchdog('xmlcontent', "XML/XSLT PHP support misconfigured", array(), WATCHDOG_ERROR);
     return $xml;
   }
   
   // check that the XSLT file exists
   if (!is_file($path_to_xslt)) {
-    watchdog('xmlcontent',"XSLT unavailable, invalid file or path: '$path_to_xslt'", WATCHDOG_ERROR);
+    watchdog('xmlcontent', "XSLT unavailable, invalid file or path: '$path_to_xslt'", array(), WATCHDOG_ERROR);
     return $xml;  
   }  
   
@@ -220,7 +220,7 @@ function _xmlcontent_transform($xml, $pa
   $dom = new DomDocument('1.0', 'UTF-8');
   $valid = $dom->loadXML($xml);
   if (!$valid) {
-    watchdog('xmlcontent', "Invalid XML Content", WATCHDOG_WARNING);
+    watchdog('xmlcontent', "Invalid XML Content", array(), WATCHDOG_WARNING);
     return $xml;
   }
   
@@ -290,4 +290,4 @@ function _xmlcontent_check_xml_support()
   }
 }
 
-?>
\ No newline at end of file
+?>
