Skip to content

Commit

Permalink
fix(settings): add missing license and partnership fields
Browse files Browse the repository at this point in the history
Relates to #14
  • Loading branch information
yarl committed Nov 25, 2016
1 parent c3f9e55 commit 556b376
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pattypan/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ public final class Settings {
new TemplateField("references", "References"),
new TemplateField("linkback", "Linkback"),
new TemplateField("wikidata", "Wikidata"),
new TemplateField("license", "License"),
new TemplateField("partnership", "Partnership")
}, "=={{int:filedesc}}==\n"
+ "{{Book\n"
+ " |Author = ${author}\n"
Expand Down Expand Up @@ -298,7 +300,7 @@ public final class Settings {

/**
* Gets directory for local user settings
*
*
* @source http://stackoverflow.com/a/16660314/1418878
* @return path to local Pattypan directory
*/
Expand All @@ -308,7 +310,7 @@ private static String getPropertiesDirectiry() {

if (OS.contains("WIN")) {
dir = System.getenv("AppData") + "/Pattypan";
} else if(OS.contains("NUX")) {
} else if (OS.contains("NUX")) {
dir = System.getProperty("user.home") + "/.pattypan";
} else {
dir = System.getProperty("user.home");
Expand Down

0 comments on commit 556b376

Please sign in to comment.