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.

Opened 9 years ago

Closed 9 years ago

#1416 closed bug (fixed)

Chargement des fichiers de cache (jIncluder)

Reported by: yamsuz Owned by: laurentj
Priority: low Milestone: Jelix 1.3
Component: jelix:core Version: 1.2.3
Severity: minor Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

Description (last modified by laurentj)

Dans le fichier jIncluder

if($mustCompile){
   $compiler = $aSelector->getCompiler();
   if($compiler && $compiler->compile($aSelector)){
       require($cachefile);
       jIncluder::$_includedFiles[$cachefile]=true;
   }
}else{
   require($cachefile);
   jIncluder::$_includedFiles[$cachefile]=true;
}

Il manque un throw dans le cas ou le fichier n'est pas compilé correctement. Puisque dans ce cas, la page s'afficher qu'avec une seule partie des données alors qu'il y a eu une erreur.

if($compiler && $compiler->compile($aSelector)){
   require($cachefile);
   jIncluder::$_includedFiles[$cachefile]=true;
}else{
   throw new jException('jelix~errors.includer.source.compile');
}

Change History (3)

comment:1 Changed 9 years ago by laurentj

  • Description modified (diff)
  • Milestone set to Jelix 1.2.4
  • Priority changed from normal to low
  • Severity changed from normal to minor

comment:2 Changed 9 years ago by laurentj

  • Milestone changed from Jelix 1.2.4 to Jelix 1.3

comment:3 Changed 9 years ago by laurentj

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.