Fix Options > Updates parse error in PHP < 7.0

This commit is contained in:
Giuseppe Criscione 2018-09-15 16:01:38 +02:00
parent d1a51f9a75
commit 348a3641a8
2 changed files with 3 additions and 2 deletions

View File

@ -85,7 +85,8 @@ class Options extends AbstractController
'content' => $this->view('options.updates', array(
'tabs' => $this->view('options.tabs', array(
'tab' => 'updates'
), false)
), false),
'currentVersion' => Formwork::VERSION
), false)
));
}

View File

@ -17,7 +17,7 @@
</div>
<div class="row current-version" style="display: none;">
<div class="col-m-1-1">
<div class="h5"><strong class="current-version-name">Formwork <?= $this->formwork()::VERSION ?></strong> <?= $this->label('updates.latest-version-available') ?></div>
<div class="h5"><strong class="current-version-name">Formwork <?= $currentVersion ?></strong> <?= $this->label('updates.latest-version-available') ?></div>
</div>
</div>
</div>