Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Commit

Permalink
Update Markdown helpers constructor
Browse files Browse the repository at this point in the history
Update deprecated constructor in PHP 7
  • Loading branch information
DocKob committed Jun 2, 2017
1 parent 437bc9a commit e70d588
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions bonfire/helpers/markdown_extended_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class MarkdownExtraExtended_Parser extends MarkdownExtra_Parser
var $block_tags_re = 'figure|figcaption|p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|address|form|fieldset|iframe|hr|legend';
var $default_classes;

function MarkdownExtraExtended_Parser($default_classes = array())
function __construct($default_classes = array())
{
$default_classes = $default_classes;

Expand All @@ -60,7 +60,7 @@ function MarkdownExtraExtended_Parser($default_classes = array())
$this->span_gamut += array(
"doStrikethroughs" => -35
);
parent::MarkdownExtra_Parser();
parent::__construct();
}

function transform($text)
Expand Down
6 changes: 3 additions & 3 deletions bonfire/helpers/markdown_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ class Markdown_Parser {
var $escape_chars_re;


function Markdown_Parser() {
function __construct() {
#
# Constructor function. Initialize appropriate member variables.
#
Expand Down Expand Up @@ -1764,7 +1764,7 @@ class MarkdownExtra_Parser extends Markdown_Parser {

### Parser Implementation ###

function MarkdownExtra_Parser() {
function __construct() {
#
# Constructor function. Initialize the parser object.
#
Expand All @@ -1790,7 +1790,7 @@ function MarkdownExtra_Parser() {
"doAbbreviations" => 70,
);

parent::Markdown_Parser();
parent::__construct();
}


Expand Down

1 comment on commit e70d588

@ilemonajames
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

Please sign in to comment.