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 #1197: ticket_1197.patch

File ticket_1197.patch, 719 bytes (added by bricet, 11 years ago)
  • lib/jelix/plugins/tpl/common/cfunction.zone.php

    diff -r ab563cf13e49 lib/jelix/plugins/tpl/common/cfunction.zone.php
    a b  
    2121function jtpl_cfunction_common_zone($compiler, $params=array())
    2222{
    2323    if(count($params) == 2){
     24        $compiler->addMetaContent('echo jZone::getMeta('.$params[0].','.$params[1].');');
    2425        $content = 'echo jZone::get('.$params[0].','.$params[1].');';
    2526    }elseif(count($params) == 1){
     27        $compiler->addMetaContent('echo jZone::getMeta('.$params[0].');');
    2628        $content = 'echo jZone::get('.$params[0].');';
    2729    }else{
    2830        $content='';