#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,8 +76,10 @@
case "component":
$config_file = "/info.xml";
break;
case "skin":
case "widgetstyle":
case "style":
$type = "skin";
case "skin":
case "widgetstyle":
$config_file = "/skin.xml";
break;
case "drcomponent":

View file

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

View file

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