diff options
author | Sebastian Reichel <sre@ring0.de> | 2013-05-19 18:41:40 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2013-05-19 18:41:40 +0200 |
commit | a45c47e95af5b71d1e7da4493f7527316f3dcfda (patch) | |
tree | c7b017e1c0e31d147c15683d601b69fce8d5ae93 | |
parent | db0c935326df4794a2d46c9abdc7d090007bdb3a (diff) | |
download | serial-barcode-scanner-a45c47e95af5b71d1e7da4493f7527316f3dcfda.tar.bz2 |
datapath -> datadir
-rw-r--r-- | src/invoice/invoice.vala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/invoice/invoice.vala b/src/invoice/invoice.vala index 63b3d07..832f05b 100644 --- a/src/invoice/invoice.vala +++ b/src/invoice/invoice.vala @@ -24,14 +24,14 @@ public class InvoiceImplementation { Mailer mailer; Database db; PDFInvoice pdf; - string datapath; + string datadir; public InvoiceImplementation() throws IOError, KeyFileError { mailer = Bus.get_proxy_sync(BusType.SESSION, "io.mainframe.shopsystem.Mail", "/io/mainframe/shopsystem/mailer"); db = Bus.get_proxy_sync(BusType.SESSION, "io.mainframe.shopsystem.Database", "/io/mainframe/shopsystem/database"); pdf = Bus.get_proxy_sync(BusType.SESSION, "io.mainframe.shopsystem.InvoicePDF", "/io/mainframe/shopsystem/invoicepdf"); Config cfg = Bus.get_proxy_sync(BusType.SESSION, "io.mainframe.shopsystem.Config", "/io/mainframe/shopsystem/config"); - datapath = cfg.get_string("INVOICE", "datapath"); + datadir = cfg.get_string("INVOICE", "datadir"); } public void send_invoices(bool temporary, int64 timestamp) throws IOError, InvoicePDFError, DatabaseError { @@ -136,7 +136,7 @@ public class InvoiceImplementation { string text; try { - FileUtils.get_contents(datapath + "/treasurer.mail.txt", out text); + FileUtils.get_contents(datadir + "/treasurer.mail.txt", out text); } catch(GLib.FileError e) { throw new IOError.FAILED("Could not open invoice template: %s", e.message); } @@ -201,7 +201,7 @@ public class InvoiceImplementation { throw new IOError.FAILED("Unknown MessageType"); try { - FileUtils.get_contents(datapath + "/" + filename, out text); + FileUtils.get_contents(datadir + "/" + filename, out text); } catch(GLib.FileError e) { throw new IOError.FAILED("Could not open invoice template: %s", e.message); } |