Dotclear


Ignore:
Timestamp:
11/26/13 14:03:59 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Allow alternative syntaxes for comments on pages two, addresses #1840

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/pages/_public.php

    r2566 r2586  
    112112                         if ($content != '') 
    113113                         { 
    114                               if ($core->blog->settings->system->wiki_comments) { 
    115                                    $core->initWikiComment(); 
     114                              # --BEHAVIOR-- publicBeforeCommentTransform 
     115                              $buffer = $core->callBehavior('publicBeforeCommentTransform',$content); 
     116                              if ($buffer != '') { 
     117                                   $content = $buffer; 
    116118                              } else { 
    117                                    $core->initWikiSimpleComment(); 
     119                                   if ($core->blog->settings->system->wiki_comments) { 
     120                                        $core->initWikiComment(); 
     121                                   } else { 
     122                                        $core->initWikiSimpleComment(); 
     123                                   } 
     124                                   $content = $core->wikiTransform($content); 
    118125                              } 
    119                               $content = $core->wikiTransform($content); 
    120126                              $content = $core->HTMLfilter($content); 
    121127                         } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map