From: Alan Knowles Date: Fri, 14 Oct 2011 05:38:08 +0000 (+0800) Subject: Generator.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=ab8b6af8ddeb33587547c0501b9d999841f0423f Generator.php --- diff --git a/Generator.php b/Generator.php index 19c9d00b..f284831f 100644 --- a/Generator.php +++ b/Generator.php @@ -360,7 +360,7 @@ touch Pman/????/DataObjects/".ucfirst($this->table).".php $outfilename = $rd.'/'.$mod.'/'. ucfirst($this->table).'.php'; - $orig = $ff->page->rootDir .'/Pman/'.$mod.'/DataObjects/'. ucfirst($this->table).'.php'; + $orig = $ff->page->rootDir .'/Pman/'.$mod.'/DataObjects/'. preg_replace('/[^A-Z0-9]+/i','_',ucfirst(trim($this->table)));.'.php'; // file_get_contents???