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