Browse Source

xml: rename convert_element_to_array to element_to_array

pull/2486/head
rabuzarus 5 years ago
parent
commit
9b3931e48a
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      include/network.php
  2. +1
    -1
      include/xml.php

+ 2
- 2
include/network.php View File

@ -481,7 +481,7 @@ function lrdd($uri, $debug = false) {
if(! $h)
return array();
$arr = xml::convert_element_to_array($h);
$arr = xml::element_to_array($h);
if(isset($arr['xrd']['property'])) {
$property = $arr['crd']['property'];
@ -659,7 +659,7 @@ function fetch_xrd_links($url) {
if(! $h)
return array();
$arr = xml::convert_element_to_array($h);
$arr = xml::element_to_array($h);
$links = array();


+ 1
- 1
include/xml.php View File

@ -138,7 +138,7 @@ class xml {
*
* @return array | sring The array from the xml element or the string
*/
public static function convert_element_to_array($xml_element, &$recursion_depth=0) {
public static function element_to_array($xml_element, &$recursion_depth=0) {
// If we're getting too deep, bail out
if ($recursion_depth > 512) {


Loading…
Cancel
Save