mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
위젯 변수값에 &가 있을 경우 제대로 파싱하지 못하여 위젯이 나타나지 않던 문제 해결
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2997 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
112f28bf81
commit
9d9efab393
1 changed files with 6 additions and 1 deletions
|
|
@ -182,8 +182,13 @@
|
|||
* @brief 위젯 코드를 실제 php코드로 변경
|
||||
**/
|
||||
function transWidget($matches) {
|
||||
$oContext = &Context::getInstance();
|
||||
$buff = trim($matches[0]);
|
||||
$buff = preg_replace_callback('/([^=^"^ ]*)=([^ ^>]*)/i', array($oContext, _fixQuotation), $buff);
|
||||
$buff = str_replace("&","&",$buff);
|
||||
|
||||
$oXmlParser = new XmlParser();
|
||||
$xml_doc = $oXmlParser->parse(trim($matches[0]));
|
||||
$xml_doc = $oXmlParser->parse(trim($buff));
|
||||
|
||||
if($xml_doc->img) $vars = $xml_doc->img->attrs;
|
||||
else $vars = $xml_doc->attrs;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue