#18729102 : support editor document style in easy installation

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7487 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
haneul 2010-05-26 03:02:50 +00:00
parent d0c7dfcfaf
commit c6440cb9aa
3 changed files with 7 additions and 3 deletions

View file

@ -76,6 +76,8 @@
case "component": case "component":
$config_file = "/info.xml"; $config_file = "/info.xml";
break; break;
case "style":
$type = "skin";
case "skin": case "skin":
case "widgetstyle": case "widgetstyle":
$config_file = "/skin.xml"; $config_file = "/skin.xml";

View file

@ -304,6 +304,7 @@
$xmlDoc = $xml->loadXmlFile(FileHandler::getRealPath($path).$config_file); $xmlDoc = $xml->loadXmlFile(FileHandler::getRealPath($path).$config_file);
if(!$xmlDoc) $this->stop("msg_invalid_request"); if(!$xmlDoc) $this->stop("msg_invalid_request");
if($type == "drcomponent") $type = "component"; if($type == "drcomponent") $type = "component";
if($type == "style") $type = "skin";
$title = $xmlDoc->{$type}->title->body; $title = $xmlDoc->{$type}->title->body;
$installedPackage->title = $title; $installedPackage->title = $title;
$installedPackage->type = $type; $installedPackage->type = $type;

View file

@ -159,6 +159,7 @@
break; break;
case "skin": case "skin":
case "widgetstyle": case "widgetstyle":
case "style":
$config_file = "/skin.xml"; $config_file = "/skin.xml";
break; break;
case "drcomponent": case "drcomponent":