projects
/
tweeper.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tweeper.php: make logXmlError() a static method
[tweeper.git]
/
tweeper.php
diff --git
a/tweeper.php
b/tweeper.php
index
f7d619e
..
817452b
100644
(file)
--- a/
tweeper.php
+++ b/
tweeper.php
@@
-164,7
+164,7
@@
class Tweeper {
/**
* Mimic the message from libxml.c::php_libxml_ctx_error_level()
*/
/**
* Mimic the message from libxml.c::php_libxml_ctx_error_level()
*/
- private function logXmlError($error) {
+ private
static
function logXmlError($error) {
$output = "";
switch ($error->level) {
$output = "";
switch ($error->level) {
@@
-205,7
+205,7
@@
class Tweeper {
return NULL;
}
return NULL;
}
- $stylesheet_contents =
$this->
getUrlContents($stylesheet);
+ $stylesheet_contents =
Tweeper::
getUrlContents($stylesheet);
$xslDoc = new DOMDocument();
$xslDoc->loadXML($stylesheet_contents);
$xslDoc = new DOMDocument();
$xslDoc->loadXML($stylesheet_contents);
@@
-293,7
+293,7
@@
class Tweeper {
}
foreach (libxml_get_errors() as $xml_error) {
}
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);
}
libxml_clear_errors();
libxml_use_internal_errors($xml_errors_value);
@@
-319,7
+319,7
@@
class Tweeper {
return NULL;
}
return NULL;
}
- $html =
$this->
getUrlContents($src_url);
+ $html =
Tweeper::
getUrlContents($src_url);
if (FALSE === $html) {
return NULL;
}
if (FALSE === $html) {
return NULL;
}