From 2b13737e9299317c865f72f4a276ea0b733c4f5f Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Mon, 2 Sep 2019 17:14:43 +0200 Subject: Make itools a bit stricter, new PHP versions start to enforce more declarations --- it_html.class | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'it_html.class') diff --git a/it_html.class b/it_html.class index 390e8ae..04d6f2b 100644 --- a/it_html.class +++ b/it_html.class @@ -392,7 +392,7 @@ function select($tags, $options, $selected = null) /** * Outputs string as correctly quoted HTML comment */ -function comment($string) +static function comment($string) { return ""; } @@ -453,7 +453,7 @@ static function sanitize($html) /** * Decode all entities to encoding set for it_html */ -function entity_decode($string) +static function entity_decode($string) { $charset = $GLOBALS['it_html']->p['charset']; $string = preg_replace('/&#(8217|65533);/', "'", html_entity_decode($string, ENT_COMPAT, $charset)); -- cgit v1.2.3