diff options
author | Sebastian Reichel <sre@ring0.de> | 2018-07-16 00:32:57 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2018-07-17 12:17:06 +0200 |
commit | d6cc1e7da591f784bddecce19e12097de88d0fe8 (patch) | |
tree | 34876d476761fbb52f638ce0039b801a8018433b /src/invoice | |
parent | e821aca14ee3c59380c82e32c9cfcdbcca144a96 (diff) | |
download | serial-barcode-scanner-d6cc1e7da591f784bddecce19e12097de88d0fe8.tar.bz2 |
fix templatedir
Diffstat (limited to 'src/invoice')
-rw-r--r-- | src/invoice/invoice.vala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/invoice/invoice.vala b/src/invoice/invoice.vala index 1321071..e83f4bf 100644 --- a/src/invoice/invoice.vala +++ b/src/invoice/invoice.vala @@ -248,7 +248,7 @@ public class InvoiceImplementation { string text; try { - FileUtils.get_contents(datadir + "/treasurer.mail.txt", out text); + FileUtils.get_contents(Path.build_filename(datadir, "/treasurer.mail.txt"), out text); } catch(GLib.FileError e) { throw new IOError.FAILED(_("Could not open invoice template: %s"), e.message); } @@ -315,7 +315,7 @@ public class InvoiceImplementation { throw new IOError.FAILED(_("Unknown MessageType")); try { - FileUtils.get_contents(datadir + "/" + filename, out text); + FileUtils.get_contents(Path.build_filename(datadir, filename), out text); } catch(GLib.FileError e) { throw new IOError.FAILED(_("Could not open invoice template: %s"), e.message); } @@ -334,7 +334,7 @@ public class InvoiceImplementation { vattextfilename = (type == MessageType.HTML) ? "vat.html" : "vat.txt"; try { - FileUtils.get_contents(datadir + "/" + vattextfilename, out vattext); + FileUtils.get_contents(Path.build_filename(datadir, vattextfilename), out vattext); } catch(GLib.FileError e) { throw new IOError.FAILED(_("Could not open VAT template: %s"), e.message); } |