mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
widget의 인자중 url encode되어 있는 값때문에 특정 위젯의 수동 캐시파일 재생성이 안되는 문제 해결
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4356 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e768a4f4cd
commit
ebbaf54a3d
1 changed files with 7 additions and 2 deletions
|
|
@ -190,8 +190,9 @@
|
|||
$oWidget = new WidgetHandler();
|
||||
$oXmlParser = new XmlParser();
|
||||
|
||||
for($i=0;$i<count($matches[1]);$i++) {
|
||||
$buff = urldecode($matches[0][$i]);
|
||||
$cnt = count($matches[1]);
|
||||
for($i=0;$i<$cnt;$i++) {
|
||||
$buff = $matches[0][$i];
|
||||
$xml_doc = $oXmlParser->parse(trim($buff));
|
||||
|
||||
$args = $xml_doc->img->attrs;
|
||||
|
|
@ -203,6 +204,10 @@
|
|||
$cache = $args->widget_cache;
|
||||
if(!$sequence || !$cache) continue;
|
||||
|
||||
if(count($args)) {
|
||||
foreach($args as $k => $v) $args->{$k} = urldecode($v);
|
||||
}
|
||||
|
||||
// 언어별로 위젯 캐시 파일이 있을 경우 재생성
|
||||
foreach($lang_list as $lang_type => $val) {
|
||||
$cache_file = sprintf('%s%d.%s.cache', $cache_path, $sequence, $lang_type);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue