|
|
@@ -12,7 +12,8 @@ class XML {
|
|
|
public static function readXmlFileToArray($filePath) {
|
|
|
$z = new XMLReader();
|
|
|
if (!$z) throw new HttpException("Class XMLReader not installed", 500);
|
|
|
- if (!$z->open($filePath)) throw new Exception("Failed to open ant schema file for '{$item['namespace']}'", 500);
|
|
|
+ $fileName = basename($filePath);
|
|
|
+ if (!$z->open($filePath)) throw new Exception("Failed to open ant schema file '{$fileName}'", 500);
|
|
|
return self::xmlReadToArray($z);
|
|
|
}
|
|
|
public static function xmlReadToArray($z) {
|