changing to 'id' for linking in YmlBasedLesson
This commit is contained in:
@ -83,7 +83,7 @@ public class Plugin {
|
||||
final String category = (String) lessonYml.get("category");
|
||||
final List<String> hints = (List<String>) lessonYml.get("hints");
|
||||
final String title = (String) lessonYml.get("title");
|
||||
final String html = (String) lessonYml.get("html");
|
||||
final String html = (String) lessonYml.get("id");
|
||||
this.ymlBasedLesson = new YmlBasedLesson(category, hints, title, html);
|
||||
this.lesson = null;
|
||||
} catch (IOException e) {
|
||||
|
@ -41,13 +41,13 @@ public class YmlBasedLesson extends LessonAdapter {
|
||||
private final String category;
|
||||
private final List<String> hints;
|
||||
private final String title;
|
||||
private final String html;
|
||||
private final String id;
|
||||
|
||||
public YmlBasedLesson(String category, List<String> hints, String title, String html) {
|
||||
public YmlBasedLesson(String category, List<String> hints, String title, String id) {
|
||||
this.category = category;
|
||||
this.hints = hints;
|
||||
this.title = title;
|
||||
this.html = html;
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -70,8 +70,8 @@ public class YmlBasedLesson extends LessonAdapter {
|
||||
return title;
|
||||
}
|
||||
|
||||
public String getHtml() {
|
||||
return html;
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user