[longomatch] Use the path for templates set in Config
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Use the path for templates set in Config
- Date: Mon, 5 Nov 2012 15:20:27 +0000 (UTC)
commit 8945aadbfa6e42aa963c8ed10500bebc524bce83
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Mon Nov 5 16:20:00 2012 +0100
Use the path for templates set in Config
LongoMatch.Services/Services/Core.cs | 2 +-
LongoMatch.Services/Services/TemplatesService.cs | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.Services/Services/Core.cs b/LongoMatch.Services/Services/Core.cs
index 3cd48e0..a872f22 100644
--- a/LongoMatch.Services/Services/Core.cs
+++ b/LongoMatch.Services/Services/Core.cs
@@ -66,7 +66,7 @@ namespace LongoMatch.Services
ProjectsManager projectsManager;
/* Start TemplatesService */
- ts = new TemplatesService(Config.configDirectory);
+ ts = new TemplatesService(Config.TemplatesDir());
Core.mainWindow.TemplatesService = ts;
/* Start DB services */
diff --git a/LongoMatch.Services/Services/TemplatesService.cs b/LongoMatch.Services/Services/TemplatesService.cs
index 223ca75..4a223b9 100644
--- a/LongoMatch.Services/Services/TemplatesService.cs
+++ b/LongoMatch.Services/Services/TemplatesService.cs
@@ -128,7 +128,7 @@ namespace LongoMatch.Services
public TemplatesProvider (string basePath, string extension)
{
- this.basePath = System.IO.Path.Combine(basePath, Constants.TEMPLATES_DIR);
+ this.basePath = basePath;
this.extension = extension;
methodLoad = typeof(T).GetMethod("Load");
methodDefaultTemplate = typeof(T).GetMethod("DefaultTemplate");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]