Various feedback items
- Add logger call on theme install failure - Add todo in Module\Admin\DBSync
This commit is contained in:
parent
71546705f8
commit
6df37afb82
2 changed files with 2 additions and 0 deletions
|
@ -177,6 +177,7 @@ class Theme
|
|||
|
||||
return true;
|
||||
} catch (\Exception $e) {
|
||||
Logger::error('Theme installation failed', ['theme' => $theme, 'error' => $e->getMessage()]);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,6 +36,7 @@ class DBSync extends BaseAdminModule
|
|||
|
||||
if ($a->argc > 2) {
|
||||
if ($a->argv[2] === 'check') {
|
||||
// @TODO Seems like a similar logic like Update::check()
|
||||
$retval = DBStructure::update($a->getBasePath(), false, true);
|
||||
if ($retval === '') {
|
||||
$o .= L10n::t("Database structure update %s was successfully applied.", DB_UPDATE_VERSION) . "<br />";
|
||||
|
|
Loading…
Reference in a new issue