[longomatch/statebar: 11/13] Fix deletion of templates



commit 9f5a2c2f80e3cc4bf14d5d791d83d0d27180ff18
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Sun Sep 18 21:05:39 2011 +0200

    Fix deletion of templates

 LongoMatch/Services/TemplatesService.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch/Services/TemplatesService.cs b/LongoMatch/Services/TemplatesService.cs
index 2ffd74a..7652ca7 100644
--- a/LongoMatch/Services/TemplatesService.cs
+++ b/LongoMatch/Services/TemplatesService.cs
@@ -233,7 +233,7 @@ namespace LongoMatch.Services
 		public void Delete (string templateName) {
 			try {
 				Log.Information("Deleting template " + templateName);
-				File.Delete (templateName);
+				File.Delete (GetPath(templateName));
 			} catch (Exception ex) {
 				Log.Exception (ex);
 			}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]