Fixes an issue where new Themes attached to a project were not being installed on update.
This commit is contained in:
parent
b45730e1d9
commit
f8c2fa30b4
|
|
@ -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)
|
* **Build 155** (2014-10-16)
|
||||||
- Back-end area can now be customized with colors and logo, via System > Customize Back-end.
|
- 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(...)`.
|
- Added twig filters `|trans` for `Lang::get(...)` and `|transchoice` for `Lang::choice(...)`.
|
||||||
|
|
|
||||||
|
|
@ -221,6 +221,12 @@ class UpdateManager
|
||||||
}
|
}
|
||||||
$result['themes'] = $themes;
|
$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));
|
Parameters::set('system::update.count', array_get($result, 'update', 0));
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
|
|
|
||||||
|
|
@ -176,7 +176,7 @@ class Updates extends Controller
|
||||||
$result = $manager->requestUpdateList();
|
$result = $manager->requestUpdateList();
|
||||||
|
|
||||||
$this->vars['core'] = array_get($result, 'core', false);
|
$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['pluginList'] = array_get($result, 'plugins', []);
|
||||||
$this->vars['themeList'] = array_get($result, 'themes', []);
|
$this->vars['themeList'] = array_get($result, 'themes', []);
|
||||||
} catch (Exception $ex) {
|
} catch (Exception $ex) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue