And even more global classes ...
This commit is contained in:
parent
d9f8fbeb4f
commit
a8caeefb52
|
@ -733,11 +733,11 @@ class Probe {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$doc = new DOMDocument();
|
$doc = new \DOMDocument();
|
||||||
if (!@$doc->loadHTML($content))
|
if (!@$doc->loadHTML($content))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
$xpath = new DomXPath($doc);
|
$xpath = new \DomXPath($doc);
|
||||||
|
|
||||||
$vcards = $xpath->query("//div[contains(concat(' ', @class, ' '), ' vcard ')]");
|
$vcards = $xpath->query("//div[contains(concat(' ', @class, ' '), ' vcard ')]");
|
||||||
if (!is_object($vcards))
|
if (!is_object($vcards))
|
||||||
|
@ -997,11 +997,11 @@ class Probe {
|
||||||
*/
|
*/
|
||||||
private function pumpio_profile_data($profile) {
|
private function pumpio_profile_data($profile) {
|
||||||
|
|
||||||
$doc = new DOMDocument();
|
$doc = new \DOMDocument();
|
||||||
if (!@$doc->loadHTMLFile($profile))
|
if (!@$doc->loadHTMLFile($profile))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
$xpath = new DomXPath($doc);
|
$xpath = new \DomXPath($doc);
|
||||||
|
|
||||||
$data = array();
|
$data = array();
|
||||||
|
|
||||||
|
@ -1073,12 +1073,12 @@ class Probe {
|
||||||
* @return string feed link
|
* @return string feed link
|
||||||
*/
|
*/
|
||||||
private function get_feed_link($url) {
|
private function get_feed_link($url) {
|
||||||
$doc = new DOMDocument();
|
$doc = new \DOMDocument();
|
||||||
|
|
||||||
if (!@$doc->loadHTMLFile($url))
|
if (!@$doc->loadHTMLFile($url))
|
||||||
return false;
|
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']");
|
||||||
$feeds = $xpath->query("/html/head/link[@type='application/rss+xml' and @rel='alternate']");
|
$feeds = $xpath->query("/html/head/link[@type='application/rss+xml' and @rel='alternate']");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user