Просмотр исходного кода

fix error msg in XML::readXmlFileToArray

Piotr Labudda 9 лет назад
Родитель
Сommit
0a1b408671
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      SE/se-lib/XML.php

+ 2 - 1
SE/se-lib/XML.php

@@ -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) {