Commit graph

12 commits

Author SHA1 Message Date
surrim 6c664e415c updated plugin versions 2021-07-12 15:44:23 +02:00
surrim 22d4608f9f using serendipity_plugin_api::load_language() for some more plugins 2021-07-12 15:44:23 +02:00
Ian 3fbd211308 remove doubled edit_nugget 2016-01-08 11:25:42 +01:00
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
Ian 8d5c70f616 cleanup and db_bool() 2015-08-02 19:54:58 +02:00
Garvin Hicking 5731762a34 Added parameters to html_entity_decode() and htmlentities().
I did not use the wrapper method for those few occurences since it was too much work.
I'm sorry :-D
2014-11-29 12:18:56 +01:00
Vladimír Ajgl 7842af973e czech translations - removed leading slash from first line (introduced erroneously in previous commit) 2013-12-28 21:43:44 +01:00
Vladimír Ajgl c5248f893e czech translations - cvs/snv tags removed 2013-12-27 20:04:36 +01:00
Garvin Hicking 80b1593707 also remove $Revision$ 2013-08-12 10:27:53 +02:00
Garvin Hicking 71589a887f Remove $Id$ for CVS compoatibility. Thought I already did this some time ago?!?! 2013-08-12 09:49:28 +02:00
Garvin Hicking ab02bb4af4 Remove $Id$ 2011-12-25 10:07:20 +01:00
Garvin Hicking 516df79a4e Migrate plugins 2011-12-13 12:29:05 +01:00