#18992532 : easy install for mobile skins

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7591 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
haneul 2010-07-06 07:16:05 +00:00
parent 1f4f0108d0
commit 19c18f7a39
3 changed files with 11 additions and 4 deletions

View file

@ -67,16 +67,19 @@
$config_file = null;
switch($type)
{
case "module":
case "addon":
case "layout":
case "widget":
case "m.layout":
$type = "layout";
case "module":
case "addon":
case "layout":
case "widget":
$config_file = "/conf/info.xml";
break;
case "component":
$config_file = "/info.xml";
break;
case "style":
case "m.skin":
$type = "skin";
case "skin":
case "widgetstyle":

View file

@ -91,6 +91,8 @@
$xmlDoc = $xml->loadXmlFile(FileHandler::getRealPath($path).$config_file);
if(!$xmlDoc) continue;
if($type == "drcomponent") $type = "component";
if($type == "style" || $type == "m.skin") $type = "skin";
if($type == "m.layout") $type = "layout";
$title = $xmlDoc->{$type}->title->body;
$installed[$key]->title = $title;
}

View file

@ -148,6 +148,7 @@
$config_file = null;
switch($type)
{
case "m.layout":
case "module":
case "addon":
case "layout":
@ -157,6 +158,7 @@
case "component":
$config_file = "/info.xml";
break;
case "m.skin":
case "skin":
case "widgetstyle":
case "style":