mirror of
https://github.com/friendica/friendica
synced 2025-04-28 02:30:16 +00:00
Rename namespace
This commit is contained in:
parent
07cea24430
commit
2fba7ed477
11 changed files with 156 additions and 161 deletions
|
@ -14,7 +14,7 @@ use Friendica\Core\Protocol;
|
|||
use Friendica\Core\System;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Model\Item;
|
||||
use Friendica\Protocol\Activity\Namespaces;
|
||||
use Friendica\Protocol\Activity\ANamespace;
|
||||
use Friendica\Util\Network;
|
||||
use Friendica\Util\XML;
|
||||
|
||||
|
@ -60,13 +60,13 @@ class Feed {
|
|||
$doc = new DOMDocument();
|
||||
@$doc->loadXML(trim($xml));
|
||||
$xpath = new DOMXPath($doc);
|
||||
$xpath->registerNamespace('atom', Namespaces::ATOM1);
|
||||
$xpath->registerNamespace('atom', ANamespace::ATOM1);
|
||||
$xpath->registerNamespace('dc', "http://purl.org/dc/elements/1.1/");
|
||||
$xpath->registerNamespace('content', "http://purl.org/rss/1.0/modules/content/");
|
||||
$xpath->registerNamespace('rdf', "http://www.w3.org/1999/02/22-rdf-syntax-ns#");
|
||||
$xpath->registerNamespace('rss', "http://purl.org/rss/1.0/");
|
||||
$xpath->registerNamespace('media', "http://search.yahoo.com/mrss/");
|
||||
$xpath->registerNamespace('poco', Namespaces::POCO);
|
||||
$xpath->registerNamespace('poco', ANamespace::POCO);
|
||||
|
||||
$author = [];
|
||||
$entries = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue