From df0d9cf6fd448a88658685c21a919d3f78f689d3 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 16 Oct 2016 15:33:24 +0200 Subject: [PATCH] Added DOM helper method --- .../install/files/lib/util/DOMUtil.class.php | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/wcfsetup/install/files/lib/util/DOMUtil.class.php b/wcfsetup/install/files/lib/util/DOMUtil.class.php index 21ac28d4d7..22f59845cc 100644 --- a/wcfsetup/install/files/lib/util/DOMUtil.class.php +++ b/wcfsetup/install/files/lib/util/DOMUtil.class.php @@ -1,5 +1,6 @@ getElementsByTagName($tagName) as $element) { + $elements[] = $element; + } + + return $elements; + } + /** * Returns the immediate parent element before provided ancestor element. Returns null if * the ancestor element is the direct parent of provided node. -- 2.20.1