Changeset 48152 in spip-zone for _core_/plugins/textwheel/inc/texte.php


Ignore:
Timestamp:
May 26, 2011, 3:45:27 PM (10 years ago)
Author:
cedric@…
Message:

retablir un point d'entree paragrapher() mais qui ignore le second argument $toujours_paragrapher obsolète

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _core_/plugins/textwheel/inc/texte.php

    r47789 r48152  
    4040                $wheel = new TextWheel(
    4141                        SPIPTextWheelRuleset::loader($GLOBALS['spip_wheels']['echappe_js'])
     42                );
     43
     44        return $wheel->text($t);
     45}
     46
     47//
     48// paragagrapher seulement
     49//
     50function paragrapher($t) {
     51        static $wheel = null;
     52
     53        if (!isset($wheel))
     54                $wheel = new TextWheel(
     55                        SPIPTextWheelRuleset::loader($GLOBALS['spip_wheels']['paragrapher'])
    4256                );
    4357
Note: See TracChangeset for help on using the changeset viewer.