From 06aceed788e799319488e984eb5e61653c3a7800 Mon Sep 17 00:00:00 2001 From: Boone B Gorges Date: Wed, 22 Mar 2017 16:24:01 -0500 Subject: [PATCH] Some PHP7 compat. See #253 --- engine/ICE/lib/markdown/markdown.php | 2 +- engine/ICE/lib/textile/classTextile.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/ICE/lib/markdown/markdown.php b/engine/ICE/lib/markdown/markdown.php index dd1b9e56..352af6f6 100755 --- a/engine/ICE/lib/markdown/markdown.php +++ b/engine/ICE/lib/markdown/markdown.php @@ -215,7 +215,7 @@ class Markdown_Parser { var $predef_titles = array(); - function Markdown_Parser() { + function __construct() { # # Constructor function. Initialize appropriate member variables. # diff --git a/engine/ICE/lib/textile/classTextile.php b/engine/ICE/lib/textile/classTextile.php index 3105cf89..cb48d004 100755 --- a/engine/ICE/lib/textile/classTextile.php +++ b/engine/ICE/lib/textile/classTextile.php @@ -361,7 +361,7 @@ class Textile var $doc_root; // ------------------------------------------------------------- - function Textile() + function __construct() { $this->hlgn = "(?:\<(?!>)|(?|\<\>|\=|[()]+(?! ))"; $this->vlgn = "[\-^~]"; @@ -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 ) )