From: Harvie Date: Tue, 26 Oct 2010 23:03:11 +0000 (+0200) Subject: html parse - another try X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=ae13bc85329f5ad48117d76bb7cc6ac993da98c7;p=mirrors%2FKyberia-bloodline.git html parse - another try --- diff --git a/wwwroot/inc/htmlparse.inc b/wwwroot/inc/htmlparse.inc index 4767d4e..21b81ce 100644 --- a/wwwroot/inc/htmlparse.inc +++ b/wwwroot/inc/htmlparse.inc @@ -2,9 +2,8 @@ class htmlparse { -public static function htmlparse($data) +function htmlparse($data) { - echo 'fooooook\n'; /* if function finds anything unsafe,it will return FALSE and saves a reason info global variable $htmlparse diff --git a/wwwroot/inc/nodes.inc b/wwwroot/inc/nodes.inc index 2b70536..2eefeb2 100644 --- a/wwwroot/inc/nodes.inc +++ b/wwwroot/inc/nodes.inc @@ -142,7 +142,7 @@ function processContent($node_content) { else { global $db,$htmlparse,$error; - if (!htmlparse::htmlparse($node_content)) { + if (!htmlparse->htmlparse($node_content)) { $error=$htmlparse; return false; }