Changeset 48777 in spip-zone for _core_/plugins/textwheel/inc/texte.php
- Timestamp:
- Jun 14, 2011, 8:09:18 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_core_/plugins/textwheel/inc/texte.php
r48570 r48777 166 166 // http://doc.spip.org/@corriger_typo 167 167 function corriger_typo($t, $lang='') { 168 static $typographie = array(); 168 169 // Plus vite ! 169 170 if (!$t) return $t; … … 190 191 191 192 // Charger & appliquer les fonctions de typographie 192 $typographie = charger_fonction(lang_typo($lang), 'typographie'); 193 $t = $typographie($t); 193 $idxl = "$lang:" . (isset($GLOBALS['lang_objet'])? $GLOBALS['lang_objet']: $GLOBALS['spip_lang']); 194 if (!isset($typographie[$idxl])) 195 $typographie[$idxl] = charger_fonction(lang_typo($lang), 'typographie'); 196 $t = $typographie[$idxl]($t); 194 197 195 198 // Les citations en une autre langue, s'il y a lieu … … 529 532 // http://doc.spip.org/@traiter_raccourcis 530 533 function traiter_raccourcis($t) { 531 static $wheel ;534 static $wheel, $notes; 532 535 // Appeler les fonctions de pre_traitement 533 536 $t = pipeline('pre_propre', $t); … … 545 548 exit; 546 549 } 550 $notes = charger_fonction('notes', 'inc'); 547 551 } 548 552 549 553 // Gerer les notes (ne passe pas dans le pipeline) 550 $notes = charger_fonction('notes', 'inc');551 554 list($t, $mes_notes) = $notes($t); 552 555
Note: See TracChangeset
for help on using the changeset viewer.