additional_plugins/serendipity_plugin_nugget_multilingual
Ian ed11b82f48 Fixed POST properties 'disable_markups'
PLEASE NOTE: Since having to deal with a Fatal error Exception thrown:
    Uncaught exception 'ErrorException' with message 'Warning: Illegal string offset 'properties'' in /plugins/serendipity_event_nl2br/serendipity_event_nl2br.php:212
    Stack trace:
    #0 plugins/serendipity_event_nl2br/serendipity_event_nl2br.php(212): errorToExceptionHandler(2, 'Illegal string ...', '/var/www/...', 212, Array)
    #1 include/plugin_api.inc.php(1141): serendipity_event_nl2br->event_hook('frontend_displa...', Object(serendipity_property_bag), Array, NULL)
    #2 plugins/serendipity_event_guestbook/serendipity_plugin_guestbook.php(196): serendipity_plugin_api::hook_event('frontend_displa...', Array)
    #3 include/plugin_api.inc.php(934): serendipity_plugin_guestbook->generate_content('G/xC3/xA4stebuch-Seit...')

    changing previous set
        !in_array($this->instance, $serendipity['POST']['properties']['disable_markups']) &&
    to
        !@in_array($this->instance, $serendipity['POST']['properties']['disable_markups']) &&
    would give us a wrong result check, since the function !@ is returning false, if 2cd param is not an array, not its value!

    See: !@in_array() == FALSE and (isset($serendipity['POST']['properties']['disable_markups']) && !in_array($this->instance, $serendipity['POST']['properties']['disable_markups'])) = TRUE

    $serendipity['POST']['properties']['disable_markups'] = array(false); is the only workable solution for (sidebar?) plugins (see sidebar plugins: guestbook, multilingual), to explicitly allow to apply nl2br to markup (if we want to)
2015-12-01 11:25:58 +01:00
..
UTF-8 cleanup and db_bool() 2015-08-02 19:54:58 +02:00
lang_bg.inc.php cleanup and db_bool() 2015-08-02 19:54:58 +02:00
lang_cs.inc.php cleanup and db_bool() 2015-08-02 19:54:58 +02:00
lang_cz.inc.php cleanup and db_bool() 2015-08-02 19:54:58 +02:00
lang_de.inc.php cleanup and db_bool() 2015-08-02 19:54:58 +02:00
lang_en.inc.php cleanup and db_bool() 2015-08-02 19:54:58 +02:00
lang_ko.inc.php cleanup and db_bool() 2015-08-02 19:54:58 +02:00
README Migrate plugins 2011-12-13 12:29:05 +01:00
serendipity_plugin_nugget_multilingual.php Fixed POST properties 'disable_markups' 2015-12-01 11:25:58 +01:00

Serendipity 'Language-Specific HTML Nugget' Plug-in
by Wesley Hwang-Chung, version 1.1

This plug-in acts exactly like the default HTML Nugget plug-in,
with one exception - you can choose under what language the HTML
nugget will be visible in. For example, if you choose 'Korean',
the HTML nugget will be visible only if the blog is being viewed
under 'Korean' language option (generally using the Multilingual
plug-in).

This plug-in is useful in multilingual blogs where the author
wants to display different HTML nuggets specifically tied to a
language.

History
1.4: Added support for three new languages in s9y 0.9
1.1: Initial Release