example() method needs to RETURN not echo.
This commit is contained in:
parent
79a565f4d9
commit
9bf64cccda
@ -126,7 +126,7 @@ class serendipity_event_contentrewrite extends serendipity_event
|
||||
}
|
||||
|
||||
function example() {
|
||||
printf(PLUGIN_EVENT_CONTENTREWRITE_REWRITESTRING, $this->fromstring, $this->tostring);
|
||||
return sprintf(PLUGIN_EVENT_CONTENTREWRITE_REWRITESTRING, $this->fromstring, $this->tostring);
|
||||
}
|
||||
|
||||
function install() {
|
||||
|
@ -86,7 +86,7 @@ class serendipity_event_nl2br extends serendipity_event
|
||||
}
|
||||
|
||||
function example() {
|
||||
echo '<h3>PLEASE NOTE the implications of this markup plugin:</h3>
|
||||
return '<h3>PLEASE NOTE the implications of this markup plugin:</h3>
|
||||
<p>This plugin transfers linebreaks to HTML-linebreaks, so that they show up in your blog entry.</p>
|
||||
<p>In two cases this can raise problematic issues for you:</p>
|
||||
<ul>
|
||||
|
@ -77,7 +77,7 @@ class serendipity_event_textile extends serendipity_event
|
||||
}
|
||||
|
||||
function example() {
|
||||
echo '<p>'.PLUGIN_EVENT_TEXTILE_EXAMPLE_NOTE.'</p>';
|
||||
return '<p>'.PLUGIN_EVENT_TEXTILE_EXAMPLE_NOTE.'</p>';
|
||||
}
|
||||
|
||||
function introspect_config_item($name, &$propbag)
|
||||
|
Loading…
x
Reference in New Issue
Block a user