Ticket #283: patch-283-1.diff
| File patch-283-1.diff, 0.7 kB (added by bastnic, 1 year ago) |
|---|
-
lib/jelix-scripts/commands/createdaocrud.cmd.php
old new 44 44 $path= $this->getModulePath($this->_parameters['module']); 45 45 46 46 $table = $this->getParam('table'); 47 $ctrlname = $this->getParam('ctrlname'); 48 if($ctrlname == null) 49 $ctrlname == $table; 47 $ctrlname = $this->getParam('ctrlname', $table); 50 48 51 49 if(file_exists($path.'controllers/'.$ctrlname.'.classic.php')){ 52 50 die("Error: controller '".$ctrlname."' already exists");
