projects
/
tweeper.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
3989b31
)
tweeper.php: make logXmlError() a static method
author
Antonio Ospite <ao2@ao2.it>
Wed, 18 May 2016 08:56:40 +0000
(10:56 +0200)
committer
Antonio Ospite <ao2@ao2.it>
Fri, 20 May 2016 09:03:52 +0000
(11:03 +0200)
tweeper.php
patch
|
blob
|
history
diff --git
a/tweeper.php
b/tweeper.php
index
1836a2a
..
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()
*/
- private function logXmlError($error) {
+ private
static
function logXmlError($error) {
$output = "";
switch ($error->level) {
@@
-293,7
+293,7
@@
class Tweeper {
}
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);