From 12061fc9d829423d3d2db708c81755683ad44f57 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 31 May 2012 13:44:02 +0800 Subject: [PATCH] sync --- Generator.php | 1 + JsTemplate.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Generator.php b/Generator.php index a3da3290..d7bc4037 100644 --- a/Generator.php +++ b/Generator.php @@ -347,6 +347,7 @@ touch Pman/????/DataObjects/".ucfirst($this->table).".php $cli = $options['cli']; foreach($this->tables as $this->table) { + $this->table = trim($this->table); $tn = strtolower($this->table); $mod = $this->modmap[$tn]; diff --git a/JsTemplate.php b/JsTemplate.php index 67f0e2ac..c3b12810 100644 --- a/JsTemplate.php +++ b/JsTemplate.php @@ -111,7 +111,7 @@ class Pman_Core_JsTemplate extends Pman { $out= array(); - $head = "$name = function(t)\n{\n var ret = [];\n\n"; + $head = "$name = function(t)\n{\n var ret = '';\n\n"; $funcs = array(); // do not allow nested functions..? -- 2.39.2