Dotclear


Ignore:
Timestamp:
09/02/14 22:12:45 (11 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
default
Message:

Plugin must no create a new instance of wiki2xhtml classe but should use the ones in core.
Closes #1987

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/dcLegacyEditor/_admin.php

    r2746 r2750  
    2323 
    2424if ($self_ns->active) { 
    25      $wiki2xhtml = new wiki2xhtml(); 
     25    if (!($core->wiki2xhtml instanceof wiki2xhtml)) { 
     26          $core->initWikiPost(); 
     27     } 
    2628 
    2729     $core->addEditorFormater('dcLegacyEditor','xhtml',create_function('$s','return $s;')); 
    28      $core->addEditorFormater('dcLegacyEditor','wiki',array($wiki2xhtml,'transform')); 
     30     $core->addEditorFormater('dcLegacyEditor','wiki',array($core->wiki2xhtml,'transform')); 
    2931 
    3032     $core->addBehavior('adminPostEditor',array('dcLegacyEditorBehaviors','adminPostEditor')); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map