issue 2705 when delete last instance of layout, layout uninstall also

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12275 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2012-11-21 08:49:51 +00:00
parent 02c0909e26
commit 41fc5be074
4 changed files with 56 additions and 11 deletions

View file

@ -215,6 +215,10 @@ class autoinstallModel extends autoinstall
if($path == ".") return "core";
$path_array = explode("/", $path);
$target_name = array_pop($path_array);
if(!$target_name)
{
$target_name = array_pop($path_array);
}
$type = substr(array_pop($path_array), 0, -1);
return $type;
}