MDL-59468 theme: bug fix accessing db during install

This commit is contained in:
Marina Glancy
2017-07-07 11:11:50 +08:00
parent 5a651b43fb
commit 63470cf31c
+1 -1
View File
@@ -67,7 +67,7 @@ function theme_get_sub_revision_for_theme($themename) {
if (empty($CFG->themedesignermode)) {
$pluginname = "theme_{$themename}";
$revision = get_config($pluginname, 'themerev');
$revision = during_initial_install() ? null : get_config($pluginname, 'themerev');
if (empty($revision)) {
// This only happens during install. It doesn't matter what themerev we use as long as it's positive.