]> git.mxchange.org Git - friendica.git/commitdiff
xml: rename convert_element_to_array to element_to_array
authorrabuzarus <>
Wed, 27 Apr 2016 15:04:46 +0000 (17:04 +0200)
committerRoland Haeder <roland@mxchange.org>
Sun, 1 May 2016 11:48:52 +0000 (13:48 +0200)
include/network.php
include/xml.php

index 9512dcec5330b70ffb3d84efb5eb1a0cf8fc70bc..d27a090fe247543af2a10cec5a01f580448873db 100644 (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();
 
index 3d154ebd564e4003f5122addf7bea5ff35f2c3cc..5cd322ed693ebdb0c399aa34f41d9fafa77f2a24 100644 (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) {