mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Remove references to old XeXmlParser in most modules
This commit is contained in:
parent
a3d682a294
commit
170e183f8f
5 changed files with 22 additions and 35 deletions
|
|
@ -572,13 +572,17 @@ class LayoutModel extends Layout
|
|||
return $layout_info;
|
||||
}
|
||||
// If no cache file exists, parse the xml and then return the variable.
|
||||
$oXmlParser = new XeXmlParser();
|
||||
$tmp_xml_obj = $oXmlParser->loadXmlFile($xml_file);
|
||||
$tmp_xml_obj = Rhymix\Framework\Parsers\XEXMLParser::loadXMLFile($xml_file);
|
||||
if (!$tmp_xml_obj)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if($tmp_xml_obj->layout) $xml_obj = $tmp_xml_obj->layout;
|
||||
elseif($tmp_xml_obj->skin) $xml_obj = $tmp_xml_obj->skin;
|
||||
|
||||
if(!$xml_obj) return;
|
||||
$xml_obj = !empty($tmp_xml_obj->layout) ? $tmp_xml_obj->layout : $tmp_xml_obj->skin;
|
||||
if (!$xml_obj)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
$buff = array();
|
||||
$buff[] = '$layout_info = new stdClass;';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue