commit
211d8147cd
|
|
@ -400,7 +400,14 @@ class Controller extends BaseController
|
|||
return Response::make($responseContents, 406);
|
||||
}
|
||||
catch (Exception $ex) {
|
||||
return Response::make($ex->getMessage(), 500);
|
||||
/*
|
||||
* Display a "dumbed down" error if custom page is activated
|
||||
* otherwise display a more detailed error.
|
||||
*/
|
||||
if (Config::get('cms.customErrorPage', false))
|
||||
return Response::make($ex->getMessage(), 500);
|
||||
|
||||
return Response::make(sprintf('"%s" on line %s of %s', $ex->getMessage(), $ex->getLine(), $ex->getFile()), 500);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -195,10 +195,16 @@ class Updates extends Controller
|
|||
$plugins[$code] = array_get($plugin, 'hash', null);
|
||||
}
|
||||
|
||||
$themes = [];
|
||||
$themeList = array_get($result, 'themes', []);
|
||||
foreach ($themeList as $code => $theme) {
|
||||
$themes[$code] = array_get($theme, 'hash', null);
|
||||
}
|
||||
|
||||
/*
|
||||
* Update steps
|
||||
*/
|
||||
$updateSteps = $this->buildUpdateSteps($core, $plugins);
|
||||
$updateSteps = $this->buildUpdateSteps($core, $plugins, $themes);
|
||||
|
||||
/*
|
||||
* Finish up
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
<i class="icon-cube"></i>
|
||||
<?= e(trans('system::lang.system.name')) ?>
|
||||
<?php if ($core['old_build']): ?>
|
||||
<?= e(trans('system::lang.updates.core_build_old', ['build'=>$core['old_build']])) ?>
|
||||
<small><?= e(trans('system::lang.updates.core_build_old', ['build'=>$core['old_build']])) ?></small>
|
||||
<?php endif ?>
|
||||
</h5>
|
||||
<dl>
|
||||
|
|
|
|||
Loading…
Reference in New Issue