/**
* Mimic the message from libxml.c::php_libxml_ctx_error_level()
*/
- private function logXmlError($error) {
+ private static function logXmlError($error) {
$output = "";
switch ($error->level) {
return NULL;
}
- $stylesheet_contents = $this->getUrlContents($stylesheet);
+ $stylesheet_contents = Tweeper::getUrlContents($stylesheet);
$xslDoc = new DOMDocument();
$xslDoc->loadXML($stylesheet_contents);
}
foreach (libxml_get_errors() as $xml_error) {
- $this->logXmlError($xml_error);
+ Tweeper::logXmlError($xml_error);
}
libxml_clear_errors();
libxml_use_internal_errors($xml_errors_value);
return NULL;
}
- $html = $this->getUrlContents($src_url);
+ $html = Tweeper::getUrlContents($src_url);
if (FALSE === $html) {
return NULL;
}