Changeset 48152 in spip-zone


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

Location:
_core_/plugins/textwheel
Files:
3 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
  • _core_/plugins/textwheel/inc/textwheel.php

    r47792 r48152  
    4343$GLOBALS['spip_wheels']['echappe_js'] = array(
    4444        'spip/echappe-js.yaml'
     45);
     46
     47$GLOBALS['spip_wheels']['paragrapher'][] = array(
     48        'spip/spip-paragrapher.yaml'
    4549);
    4650
  • _core_/plugins/textwheel/plugin.xml

    r47648 r48152  
    44        <icon>textwheel-64.png</icon>
    55        <licence>GNU/GPL</licence>
    6         <version>0.4.1</version>
     6        <version>0.4.2</version>
    77        <etat>test</etat>
    88        <description>Int&eacute;grer TextWheel dans SPIP</description>
Note: See TracChangeset for help on using the changeset viewer.