Changeset 111511 in spip-zone for _plugins_/newsletters


Ignore:
Timestamp:
Sep 6, 2018, 9:27:03 AM (3 weeks ago)
Author:
root
Message:

Compatibilité PHP 7, 7.3 : constructeur et pas de continue dans un switch.

Location:
_plugins_/newsletters/trunk/lib/markdownify
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/newsletters/trunk/lib/markdownify/markdownify.php

    r74225 r111511  
    117117   * @return void
    118118   */
    119   function Markdownify($linksAfterEachParagraph = MDFY_LINKS_EACH_PARAGRAPH, $bodyWidth = MDFY_BODYWIDTH, $keepHTML = MDFY_KEEPHTML) {
     119  function __construct($linksAfterEachParagraph = MDFY_LINKS_EACH_PARAGRAPH, $bodyWidth = MDFY_BODYWIDTH, $keepHTML = MDFY_KEEPHTML) {
    120120    $this->linksAfterEachParagraph = $linksAfterEachParagraph;
    121121    $this->keepHTML = $keepHTML;
     
    292292            $this->isMarkdownable(); # update notConverted
    293293            $this->handleTagToText();
    294             continue;
     294            break;
    295295          }
    296296          if (!$this->parser->keepWhitespace && $this->parser->isBlockElement && $this->parser->isStartTag) {
  • _plugins_/newsletters/trunk/lib/markdownify/markdownify_extra.php

    r68158 r111511  
    5050   * constructor, see Markdownify::Markdownify() for more information
    5151   */
    52   function Markdownify_Extra($linksAfterEachParagraph = MDFY_LINKS_EACH_PARAGRAPH, $bodyWidth = MDFY_BODYWIDTH, $keepHTML = MDFY_KEEPHTML) {
     52  function __construct($linksAfterEachParagraph = MDFY_LINKS_EACH_PARAGRAPH, $bodyWidth = MDFY_BODYWIDTH, $keepHTML = MDFY_KEEPHTML) {
    5353    parent::Markdownify($linksAfterEachParagraph, $bodyWidth, $keepHTML);
    5454
Note: See TracChangeset for help on using the changeset viewer.