Merge branch 'wip-MDL-59468-master' of https://github.com/marinaglancy/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2017-07-10 04:25:23 +02:00
commit 2ae3581d63

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.