Ticket #283: patch-283-1.diff

File patch-283-1.diff, 0.7 kB (added by bastnic, 1 year ago)

deux lignes qui ne semblent pas servir à grand chose

  • lib/jelix-scripts/commands/createdaocrud.cmd.php

    old new  
    4444        $path= $this->getModulePath($this->_parameters['module']); 
    4545 
    4646        $table = $this->getParam('table'); 
    47         $ctrlname = $this->getParam('ctrlname'); 
    48         if($ctrlname == null) 
    49             $ctrlname == $table; 
     47        $ctrlname = $this->getParam('ctrlname', $table); 
    5048 
    5149        if(file_exists($path.'controllers/'.$ctrlname.'.classic.php')){ 
    5250            die("Error: controller '".$ctrlname."' already exists"); 
Download in other formats: Original Format