YML config should override lesson class

This commit is contained in:
Nanne Baars
2016-06-29 12:08:13 +02:00
parent 0a26e05ca5
commit c350e86772
2 changed files with 4 additions and 6 deletions

View File

@ -68,9 +68,7 @@ public class Plugin {
}
//New code all lessons should work as below
if (this.lesson == null) {
readYmlLessonConfiguration();
}
readYmlLessonConfiguration();
}
private void readYmlLessonConfiguration() {
@ -87,6 +85,7 @@ public class Plugin {
final String title = (String) lessonYml.get("title");
final String html = (String) lessonYml.get("html");
this.ymlBasedLesson = new YmlBasedLesson(category, hints, title, html);
this.lesson = null;
} catch (IOException e) {
throw new PluginLoadingFailure("Unable to read yml file", e);
}