Add more protections to prevent XE core update

This commit is contained in:
Kijin Sung 2020-02-15 16:32:09 +09:00
parent 030f27d488
commit 1d0c1a5329
5 changed files with 12 additions and 8 deletions

View file

@ -201,6 +201,12 @@ class autoinstallAdminController extends autoinstall
foreach($packages as $package_srl)
{
$package = $oModel->getPackage($package_srl);
$package->type = $oModel->getTypeFromPath($package->path);
if ($package->type === 'core')
{
continue;
}
if($oAdminModel->checkUseDirectModuleInstall($package)->toBool())
{
$oModuleInstaller = new DirectModuleInstaller($package);

View file

@ -215,7 +215,6 @@ class autoinstallAdminModel extends autoinstall
if($packageInfo->type == 'core')
{
//$title = 'XpressEngine';
continue;
}
else

View file

@ -216,7 +216,7 @@ class autoinstallAdminView extends autoinstall
if($v->type == "core")
{
$v->avail_remove = FALSE;
continue;
}
else if($v->type == "module")
{

View file

@ -17,10 +17,6 @@
</ul>
</div>
<div cond="$contain_core" class="x_alert x_alert-block">
<h4>{$lang->msg_update_core_title}</h4>
<p>{$lang->msg_update_core}</p>
</div>
<div cond="$package->installed" class="x_well">
<p>{$lang->current_version}: {$package->cur_version} <block cond="$package->need_update">({$lang->require_update})</block></p>
</div>