Skip to content

Commit

Permalink
Some PHP7 compat.
Browse files Browse the repository at this point in the history
See #253
  • Loading branch information
boonebgorges committed Mar 22, 2017
1 parent ac04efc commit 06aceed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion engine/ICE/lib/markdown/markdown.php
Expand Up @@ -215,7 +215,7 @@ class Markdown_Parser {
var $predef_titles = array();


function Markdown_Parser() {
function __construct() {
#
# Constructor function. Initialize appropriate member variables.
#
Expand Down
4 changes: 2 additions & 2 deletions engine/ICE/lib/textile/classTextile.php
Expand Up @@ -361,7 +361,7 @@ class Textile
var $doc_root;

// -------------------------------------------------------------
function Textile()
function __construct()
{
$this->hlgn = "(?:\<(?!>)|(?<!<)\>|\<\>|\=|[()]+(?! ))";
$this->vlgn = "[\-^~]";
Expand Down Expand Up @@ -614,7 +614,7 @@ function pba($in, $element = "", $include_id = 1) // "parse block attributes"
$o = '';
if( $style ) {
foreach($style as $s) {
$parts = split(';', $s);
$parts = explode(';', $s);
foreach( $parts as $p ) {
$p = trim($p, '; ');
if( !empty( $p ) )
Expand Down

0 comments on commit 06aceed

Please sign in to comment.