]> git.mxchange.org Git - friendica-addons.git/commitdiff
The $node parameter of DomDocument::saveHTML was added only in php version 5.3.6.
authorDomovoy <domovoy@errlock.org>
Mon, 23 Jul 2012 18:46:09 +0000 (20:46 +0200)
committerDomovoy <domovoy@errlock.org>
Mon, 23 Jul 2012 18:46:09 +0000 (20:46 +0200)
No problem, strip_tags gets out anything we don't want anyway.

showmore/showmore.php

index e4f0de4ef0616a5ba7427e3cac4722b986ce5e8c..5b0f14a0c38fe39c7ecf954bde8a03bcad34acd1 100755 (executable)
@@ -85,7 +85,7 @@ function get_body_length($body) {
                }
        }
        // Now we can get the body of our HTML DomDocument, it contains only what is visible
-       $string = $dom->saveHTML($dom->getElementsByTagName('body')->item(0));
+       $string = $dom->saveHTML();
 
        $string = strip_tags($string);
        return strlen($string);