Use use
instead of \
This commit is contained in:
parent
bc724f2b68
commit
39f894bd4a
5 changed files with 97 additions and 71 deletions
|
@ -11,6 +11,9 @@ use Friendica\App;
|
|||
use Friendica\Core\Config;
|
||||
use Friendica\Network\Probe;
|
||||
|
||||
use DomXPath;
|
||||
use DOMDocument;
|
||||
|
||||
require_once 'include/datetime.php';
|
||||
require_once 'include/probe.php';
|
||||
require_once 'include/network.php';
|
||||
|
@ -890,9 +893,9 @@ function poco_fetch_nodeinfo($server_url) {
|
|||
function poco_detect_server_type($body) {
|
||||
$server = false;
|
||||
|
||||
$doc = new \DOMDocument();
|
||||
$doc = new DOMDocument();
|
||||
@$doc->loadHTML($body);
|
||||
$xpath = new \DomXPath($doc);
|
||||
$xpath = new DomXPath($doc);
|
||||
|
||||
$list = $xpath->query("//meta[@name]");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue