developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Ticket #1163: jelix-scripts-createapp-withcmdline-fail-bugfix.diff

File jelix-scripts-createapp-withcmdline-fail-bugfix.diff, 1.0 KB (added by catsoup, 10 years ago)

ok for trunk and 1.1.x

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

    diff -r d035f747cc64 lib/jelix-scripts/commands/createapp.cmd.php
    a b  
    191191            if(!$this->getOption('-nodefaultmodule') && $moduleok){
    192192                $agcommand = jxs_load_command('createctrl');
    193193                $options = array('-cmdline'=>true);
    194                 $agcommand->init($options,array('module'=>$GLOBALS['APPNAME'], 'name'=>'default','method'=>'index'));
     194                $agcommand->init($options,array('module'=>$param['modulename'], 'name'=>'default','method'=>'index'));
    195195                $agcommand->run();
    196196            }
    197197            $agcommand = jxs_load_command('createentrypoint');
    198198            $options = array('-type'=>'cmdline');
    199             $parameters = array('name'=>$GLOBALS['APPNAME']);
     199            $parameters = array('name'=>$param['modulename']);
    200200            $agcommand->init($options, $parameters);
    201201            $agcommand->run();
    202202        }