* Restrict the version of the prompt message displayed.
This commit is contained in:
@@ -907,12 +907,21 @@ class upgrade extends control
|
||||
if($processed == 'no')
|
||||
{
|
||||
$this->app->loadLang('install');
|
||||
|
||||
$showPrivTips = false;
|
||||
if(is_numeric($fromVersion[0]) and version_compare($fromVersion, '18.9', '<=')) $showPrivTips = true;
|
||||
if(strpos($fromVersion, 'pro') !== false) $showPrivTips = true;
|
||||
if(strpos($fromVersion, 'biz') !== false and version_compare($fromVersion, 'biz8.9', '<=')) $showPrivTips = true;
|
||||
if(strpos($fromVersion, 'max') !== false and version_compare($fromVersion, 'max4.9', '<=')) $showPrivTips = true;
|
||||
if(strpos($fromVersion, 'ipd') !== false and version_compare($fromVersion, 'ipd1.1.1', '<=')) $showPrivTips = true;
|
||||
|
||||
$this->view->title = $this->lang->upgrade->result;
|
||||
$this->view->position[] = $this->lang->upgrade->common;
|
||||
|
||||
$needProcess = $this->upgrade->checkProcess();
|
||||
$this->view->needProcess = $needProcess;
|
||||
$this->view->fromVersion = $fromVersion;
|
||||
$this->view->needProcess = $needProcess;
|
||||
$this->view->fromVersion = $fromVersion;
|
||||
$this->view->showPrivTips = $showPrivTips;
|
||||
$this->display();
|
||||
}
|
||||
if(empty($needProcess) or $processed == 'yes')
|
||||
|
||||
@@ -20,7 +20,9 @@
|
||||
<div class='col-md-6'>
|
||||
<div class='message mgb-10 text-center'>
|
||||
<strong><?php echo $lang->upgrade->success?></strong>
|
||||
<?php if($showPrivTips):?>
|
||||
<p class="priv-tips"><?php echo $lang->upgrade->addTraincoursePrivTips;?></p>
|
||||
<?php endif;?>
|
||||
<div><?php echo html::a('index.php', $lang->upgrade->tohome, '', "class='btn btn-primary btn-wide' id='tohome'")?></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user