example() method needs to RETURN not echo.

This commit is contained in:
Garvin Hicking 2014-03-05 13:28:26 +01:00
parent 79a565f4d9
commit 9bf64cccda
3 changed files with 3 additions and 3 deletions

View File

@ -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() {

View File

@ -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>

View File

@ -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)