JsRender/Roo.vala
authorAlan Knowles <alan@roojs.com>
Fri, 17 Oct 2014 09:25:22 +0000 (17:25 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 17 Oct 2014 09:25:22 +0000 (17:25 +0800)
JsRender/Roo.vala

index efc7cb3..4cc6016 100644 (file)
@@ -262,7 +262,7 @@ namespace JsRender {
                var dn = GLib.Path.get_dirname(fn);
 
                var targetdir = dn + (
-                       top.index_of("Roo.mailer.") ? "" : "/templates";
+                       top.index_of("Roo.mailer.") != 0 ? "" : "/templates" );
                              
                
                if (!FileUtils.test(targetdir, FileTest.IS_DIR)) {