#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; $config_file = null;
switch($type) switch($type)
{ {
case "module": case "m.layout":
case "addon": $type = "layout";
case "layout": case "module":
case "widget": case "addon":
case "layout":
case "widget":
$config_file = "/conf/info.xml"; $config_file = "/conf/info.xml";
break; break;
case "component": case "component":
$config_file = "/info.xml"; $config_file = "/info.xml";
break; break;
case "style": case "style":
case "m.skin":
$type = "skin"; $type = "skin";
case "skin": case "skin":
case "widgetstyle": case "widgetstyle":

View file

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

View file

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