]> git.mxchange.org Git - friendica.git/commitdiff
And even more global classes ...
authorMichael <heluecht@pirati.ca>
Sun, 7 May 2017 22:21:12 +0000 (22:21 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 7 May 2017 22:21:12 +0000 (22:21 +0000)
src/Network/Probe.php

index 56e5c1b9fc93ef85a35f78cadc9ee12accaa0d10..90e39e5d1eb3697b96249a4d59c02ba53dae9ac5 100644 (file)
@@ -733,11 +733,11 @@ class Probe {
                        return false;
                }
 
-               $doc = new DOMDocument();
+               $doc = new \DOMDocument();
                if (!@$doc->loadHTML($content))
                        return false;
 
-               $xpath = new DomXPath($doc);
+               $xpath = new \DomXPath($doc);
 
                $vcards = $xpath->query("//div[contains(concat(' ', @class, ' '), ' vcard ')]");
                if (!is_object($vcards))
@@ -997,11 +997,11 @@ class Probe {
         */
        private function pumpio_profile_data($profile) {
 
-               $doc = new DOMDocument();
+               $doc = new \DOMDocument();
                if (!@$doc->loadHTMLFile($profile))
                        return false;
 
-               $xpath = new DomXPath($doc);
+               $xpath = new \DomXPath($doc);
 
                $data = array();
 
@@ -1073,12 +1073,12 @@ class Probe {
         * @return string feed link
         */
        private function get_feed_link($url) {
-               $doc = new DOMDocument();
+               $doc = new \DOMDocument();
 
                if (!@$doc->loadHTMLFile($url))
                        return false;
 
-               $xpath = new DomXPath($doc);
+               $xpath = new \DomXPath($doc);
 
                //$feeds = $xpath->query("/html/head/link[@type='application/rss+xml']");
                $feeds = $xpath->query("/html/head/link[@type='application/rss+xml' and @rel='alternate']");