mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@843 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
4ea882e869
commit
ee9723c0b7
5 changed files with 35 additions and 7 deletions
|
|
@ -49,7 +49,7 @@
|
|||
$gallery_info->bg_color = $xml_obj->attrs->bg_color;
|
||||
$gallery_info->gallery_align = $xml_obj->attrs->gallery_align;
|
||||
|
||||
preg_match_all("/([^\"]){0,1}http([a-zA-Z0-9\_\-\:\/\.\~]*)(gif|jpg|jpeg|png)/i",trim($xml_obj->body),$matches);
|
||||
preg_match_all("/([^\"]){0,1}http([a-zA-Z0-9\_\-\:\/\.\~]*)([^\.]*)\.(gif|jpg|jpeg|png)/i",trim($xml_obj->body),$matches);
|
||||
$image_list = $matches[0];
|
||||
$image_count = count($image_list);
|
||||
for($i=0;$i<$image_count;$i++) $image_list[$i] = preg_replace('/^(\>|\s)/','', $image_list[$i]);
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@
|
|||
**/
|
||||
function getComponentObject($component, $upload_target_srl = 0) {
|
||||
// 해당 컴포넌트의 객체를 생성해서 실행
|
||||
$class_path = sprintf('./editor_components/%s/', $component);
|
||||
$class_path = sprintf('%s/components/%s/', $this->module_path, $component);
|
||||
$class_file = sprintf('%s%s.class.php', $class_path, $component);
|
||||
if(!file_exists($class_file)) return new Object(-1, sprintf(Context::getLang('msg_component_is_not_founded'), $component));
|
||||
|
||||
|
|
@ -192,7 +192,7 @@
|
|||
$lang_type = Context::getLangType();
|
||||
|
||||
// 요청된 컴포넌트의 xml파일 위치를 구함
|
||||
$component_path = sprintf('./editor_components/%s/', $component);
|
||||
$component_path = sprintf('%s/components/%s/', $this->module_path, $component);
|
||||
|
||||
$xml_file = sprintf('%sinfo.xml', $component_path);
|
||||
$cache_file = sprintf('./files/cache/editor/%s.%s.php', $component, $lang_type);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue