diff --git a/includes/kohana/modules/xml/classes/xml/core.php b/includes/kohana/modules/xml/classes/xml/core.php index 19a7b0b4..a9ac5964 100644 --- a/includes/kohana/modules/xml/classes/xml/core.php +++ b/includes/kohana/modules/xml/classes/xml/core.php @@ -99,7 +99,7 @@ // Initialize the document with the given element if (is_string($element)) { - if (is_file($element) OR validate::url($element)) + if (is_file($element) OR valid::url($element)) { // Generate XML from a file $this->dom_doc->load($element);