widget의 인자중 url encode되어 있는 값때문에 특정 위젯의 수동 캐시파일 재생성이 안되는 문제 해결

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4356 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-07-14 08:40:30 +00:00
parent e768a4f4cd
commit ebbaf54a3d

View file

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