tweeper.php: make it clearer that getUrlContents is a static method
authorAntonio Ospite <ao2@ao2.it>
Tue, 17 May 2016 22:08:15 +0000 (00:08 +0200)
committerAntonio Ospite <ao2@ao2.it>
Fri, 20 May 2016 09:03:52 +0000 (11:03 +0200)
tweeper.php

index f7d619e..1836a2a 100644 (file)
@@ -205,7 +205,7 @@ class Tweeper {
       return NULL;
     }
 
-    $stylesheet_contents = $this->getUrlContents($stylesheet);
+    $stylesheet_contents = Tweeper::getUrlContents($stylesheet);
 
     $xslDoc = new DOMDocument();
     $xslDoc->loadXML($stylesheet_contents);
@@ -319,7 +319,7 @@ class Tweeper {
       return NULL;
     }
 
-    $html = $this->getUrlContents($src_url);
+    $html = Tweeper::getUrlContents($src_url);
     if (FALSE === $html) {
       return NULL;
     }