Fixes an issue where new Themes attached to a project were not being installed on update.

This commit is contained in:
Sam Georges 2014-10-21 19:21:17 +11:00
parent b45730e1d9
commit f8c2fa30b4
3 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,7 @@
* **Build 15x** (2014-10-x)
- Fixes an issue where new Themes attached to a project were not being installed on update.
- Fixes issue where XDebug aborts the thread for maximum function count.
* **Build 155** (2014-10-16)
- Back-end area can now be customized with colors and logo, via System > Customize Back-end.
- Added twig filters `|trans` for `Lang::get(...)` and `|transchoice` for `Lang::choice(...)`.

View File

@ -221,6 +221,12 @@ class UpdateManager
}
$result['themes'] = $themes;
/*
* There are updates if update count is empty
* or if uninstalled themes are found.
*/
$result['hasUpdates'] = array_get($result, 'update') || count($themes);
Parameters::set('system::update.count', array_get($result, 'update', 0));
return $result;

View File

@ -176,7 +176,7 @@ class Updates extends Controller
$result = $manager->requestUpdateList();
$this->vars['core'] = array_get($result, 'core', false);
$this->vars['hasUpdates'] = array_get($result, 'update', false);
$this->vars['hasUpdates'] = array_get($result, 'hasUpdates', false);
$this->vars['pluginList'] = array_get($result, 'plugins', []);
$this->vars['themeList'] = array_get($result, 'themes', []);
} catch (Exception $ex) {