From a45c47e95af5b71d1e7da4493f7527316f3dcfda Mon Sep 17 00:00:00 2001 From: Sebastian Reichel Date: Sun, 19 May 2013 18:41:40 +0200 Subject: datapath -> datadir --- src/invoice/invoice.vala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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); } -- cgit v1.2.3