From 95f129d9b64d0a786b50df4c4444bf359cc1e69a Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Wed, 27 Apr 2016 17:04:46 +0200 Subject: [PATCH] xml: rename convert_element_to_array to element_to_array --- include/network.php | 4 ++-- include/xml.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/network.php b/include/network.php index 9512dcec53..d27a090fe2 100644 --- a/include/network.php +++ b/include/network.php @@ -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(); diff --git a/include/xml.php b/include/xml.php index 3d154ebd56..5cd322ed69 100644 --- a/include/xml.php +++ b/include/xml.php @@ -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) { -- 2.39.5