Dotclear

Changeset 2585:59b040fa9a75


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

Allow alternative syntaxes for comments, fixes #1840

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/public/lib.urlhandlers.php

    r2577 r2585  
    418418                         if ($content != '') 
    419419                         { 
    420                               if ($core->blog->settings->system->wiki_comments) { 
    421                                    $core->initWikiComment(); 
     420                              # --BEHAVIOR-- publicBeforeCommentTransform 
     421                              $buffer = $core->callBehavior('publicBeforeCommentTransform',$content); 
     422                              if ($buffer != '') { 
     423                                   $content = $buffer; 
    422424                              } else { 
    423                                    $core->initWikiSimpleComment(); 
     425                                   if ($core->blog->settings->system->wiki_comments) { 
     426                                        $core->initWikiComment(); 
     427                                   } else { 
     428                                        $core->initWikiSimpleComment(); 
     429                                   } 
     430                                   $content = $core->wikiTransform($content); 
    424431                              } 
    425                               $content = $core->wikiTransform($content); 
    426432                              $content = $core->HTMLfilter($content); 
    427433                         } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map