Fix to an issue introduced in 2.3.128 that incorrectly causes MISP to not sync due to a version mismatch

pull/672/head
iglocska 2015-09-17 11:28:57 +02:00
parent 7f3996f43b
commit cfec8d65e4
2 changed files with 3 additions and 2 deletions

View File

@ -80,7 +80,7 @@ class AppController extends Controller {
public function beforeFilter() {
$versionArray = $this->{$this->modelClass}->checkMISPVersion();
$this->mispVersion = implode('.', array_values($versionArray));
$this->mispVersionFull = implode('.', array_values($versionArray));
$this->Security->blackHoleCallback = 'blackHole';
// send users away that are using ancient versions of IE
// Make sure to update this if IE 20 comes out :)
@ -153,6 +153,7 @@ class AppController extends Controller {
if ($this->Auth->user()) {
//$this->_refreshAuth();
$this->set('mispVersion', $this->mispVersion);
$this->set('mispVersionFull', $this->mispVersionFull);
$role = $this->getActions();
$this->set('me', $this->Auth->user());
$this->set('isAdmin', $role['perm_admin']);

View File

@ -14,7 +14,7 @@
<div class = "footerText footerCenterText">
<?php
$footerText = Configure::read('MISP.footerpart1') . ' ' . Configure::read('MISP.footerpart2');
if (isset($me['id'])) $footerText = Configure::read('MISP.footerpart1') . ' version ' . $mispVersion . ' ' . Configure::read('MISP.footerpart2');
if (isset($me['id'])) $footerText = Configure::read('MISP.footerpart1') . ' version ' . $mispVersionFull . ' ' . Configure::read('MISP.footerpart2');
?>
<span> <?php echo h($footerText); ?> </span>
</div>