parent
9475505369
commit
68f515ba0e
|
|
@ -336,19 +336,21 @@ class Updates extends Controller
|
|||
/*
|
||||
* Core
|
||||
*/
|
||||
$coreImportant = false;
|
||||
if (isset($result['core'])) {
|
||||
$coreImportant = false;
|
||||
|
||||
foreach (array_get($result, 'core.updates', []) as $build => $description) {
|
||||
if (strpos($description, '!!!') === false) continue;
|
||||
foreach (array_get($result, 'core.updates', []) as $build => $description) {
|
||||
if (strpos($description, '!!!') === false) continue;
|
||||
|
||||
$detailsUrl = '//octobercms.com/support/articles/release-notes';
|
||||
$description = str_replace('!!!', '', $description);
|
||||
$result['core']['updates'][$build] = [$description, $detailsUrl];
|
||||
$coreImportant = $hasImportantUpdates = true;
|
||||
$detailsUrl = '//octobercms.com/support/articles/release-notes';
|
||||
$description = str_replace('!!!', '', $description);
|
||||
$result['core']['updates'][$build] = [$description, $detailsUrl];
|
||||
$coreImportant = $hasImportantUpdates = true;
|
||||
}
|
||||
|
||||
$result['core']['isImportant'] = $coreImportant ? '1' : '0';
|
||||
}
|
||||
|
||||
$result['core']['isImportant'] = $coreImportant ? '1' : '0';
|
||||
|
||||
/*
|
||||
* Plugins
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
</h5>
|
||||
</div>
|
||||
<dl>
|
||||
<?php foreach ($core['updates'] as $build => $description): ?>
|
||||
<?php foreach (array_get($core, 'updates', []) as $build => $description): ?>
|
||||
<dt><?= e(trans('system::lang.updates.core_build', ['build'=>$build])) ?></dt>
|
||||
<?php if (is_array($description)): ?>
|
||||
<dd>
|
||||
|
|
@ -104,7 +104,7 @@
|
|||
<?= e(trans('system::lang.updates.plugin_version_none')) ?>
|
||||
</dd>
|
||||
<?php else: ?>
|
||||
<?php foreach ($plugin['updates'] as $version => $description): ?>
|
||||
<?php foreach (array_get($plugin, 'updates', []) as $version => $description): ?>
|
||||
<dt><?= e($version) ?></dt>
|
||||
<?php if (is_array($description)): ?>
|
||||
<dd>
|
||||
|
|
|
|||
Loading…
Reference in New Issue