CRM_Core_Menu - Fix warnings during local test run (dev/core#742)
[civicrm-core.git] / CRM / Core / Menu.php
index ceb7e2a98cdf98e1a5b18f8247b46d19d9de948b..f370b8cacb6b16e642f31bb5639fa8d68f7b2add 100644 (file)
@@ -96,7 +96,7 @@ class CRM_Core_Menu {
    * @throws Exception
    */
   public static function read($name, &$menu) {
-    $xml = simplexml_load_file($name);
+    $xml = simplexml_load_string(file_get_contents($name));
     self::readXML($xml, $menu);
   }