smartymarkupplugin update 1.10 finished

This commit is contained in:
Ian 2012-02-01 16:01:29 +01:00
parent 8f6f198c61
commit 8535da90b9
5 changed files with 12 additions and 5 deletions

View file

@ -1 +1,5 @@
1.10
added: configs comment warning and their default to not parse comments
1.9
latest: Smarty3 forward compatibility

View file

@ -1,4 +1,5 @@
<?php # $Id$
@define('PLUGIN_EVENT_SMARTYMARKUP_NAME', 'Textformatierung: Smarty Parsing');
@define('PLUGIN_EVENT_SMARTYMARKUP_DESC', 'Parst Smarty-Anweisungen im Artikeltext');
@define('PLUGIN_EVENT_SMARTYMARKUP_NAME', 'Textformatierung: Smarty Parsing');
@define('PLUGIN_EVENT_SMARTYMARKUP_DESC', 'Parst Smarty-Anweisungen im Artikeltext');
@define('PLUGIN_EVENT_SMARTYMARKUP_WARN', ' - Warnung: Kommentare sind öffentliche Eingaben. Benutzung nur mit Vorsicht!');

View file

@ -1,4 +1,5 @@
<?php # $Id$
@define('PLUGIN_EVENT_SMARTYMARKUP_NAME', 'Textformatierung: Smarty Parsing');
@define('PLUGIN_EVENT_SMARTYMARKUP_DESC', 'Parst Smarty-Anweisungen im Artikeltext');
@define('PLUGIN_EVENT_SMARTYMARKUP_NAME', 'Textformatierung: Smarty Parsing');
@define('PLUGIN_EVENT_SMARTYMARKUP_DESC', 'Parst Smarty-Anweisungen im Artikeltext');
@define('PLUGIN_EVENT_SMARTYMARKUP_WARN', ' - Warnung: Kommentare sind öffentliche Eingaben. Benutzung nur mit Vorsicht!');

View file

@ -8,5 +8,6 @@
@define('PLUGIN_EVENT_SMARTYMARKUP_NAME', 'Markup: Smarty Parsing');
@define('PLUGIN_EVENT_SMARTYMARKUP_DESC', 'Parses Smarty instructions inside the article text');
@define('PLUGIN_EVENT_SMARTYMARKUP_WARN', ' - Warning: comments are public user-space, handle with care!');
?>

View file

@ -106,7 +106,7 @@ class serendipity_event_smartymarkup extends serendipity_event
{
$propbag->add('type', 'boolean');
$propbag->add('name', constant($name));
$propbag->add('description', sprintf(APPLY_MARKUP_TO, constant($name)));
$propbag->add('description', sprintf(APPLY_MARKUP_TO, constant($name)) . ($name == 'COMMENT' ? PLUGIN_EVENT_SMARTYMARKUP_WARN : ''));
$propbag->add('default', ($name == 'COMMENT' ? 'false' : 'true'));
return true;
}