From: Harvie Date: Tue, 26 Oct 2010 23:03:11 +0000 (+0200) Subject: html parse - another try X-Git-Url: http://git.harvie.cz/?a=commitdiff_plain;h=ae13bc85329f5ad48117d76bb7cc6ac993da98c7;hp=9ae34b38d91c30ae2b9c95c0f88c90e9da1512aa;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; }