Ignore:
Timestamp:
Oct 9, 2017, 9:34:33 AM (3 years ago)
Author:
marcimat@…
Message:

Compatibilité 3.2 normallement.

  • .bind() => .on()
  • simplifications de qq écritures js
  • notice php en moins.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/blocsdepliables/blocsdepliables_pipelines.php

    r104699 r106636  
    5959
    6060function blocsdepliables_callback($matches) {
    61         list($titre, $corps) = preg_split(',(\n\n|\r\n\r\n|\r\r),', trim($matches[3]), 2);
     61        list($titre, $corps) = array_pad(preg_split(',(\n\n|\r\n\r\n|\r\r),', trim($matches[3]), 2), 2, null);
    6262        // pas de corps !
    6363        if (!strlen($corps = trim($corps))) {
Note: See TracChangeset for help on using the changeset viewer.