diff options
author | John Coggeshall <john@php.net> | 2004-08-28 18:10:21 +0000 |
---|---|---|
committer | John Coggeshall <john@php.net> | 2004-08-28 18:10:21 +0000 |
commit | 2f4ca9a2d45377317b55b6add11da69b8a2194cb (patch) | |
tree | 3287f9c0a828ff749b72e0d538a260985ea11f5c /ext/tidy/examples/dumpit5.php | |
parent | 52d6a64efa7d568496e1947c9a7b76cae60f762f (diff) | |
download | php-git-2f4ca9a2d45377317b55b6add11da69b8a2194cb.tar.gz |
Removed examples which don't actually work anymore for PHP 4, and
updated those that do for PHP 5.
Diffstat (limited to 'ext/tidy/examples/dumpit5.php')
-rw-r--r-- | ext/tidy/examples/dumpit5.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/tidy/examples/dumpit5.php b/ext/tidy/examples/dumpit5.php index ad9157f6ad..d7aee2d652 100644 --- a/ext/tidy/examples/dumpit5.php +++ b/ext/tidy/examples/dumpit5.php @@ -51,7 +51,7 @@ echo $string; } - function dump_tree(tidy_node $node, $indent = 0) { + function dump_tree(tidyNode $node, $indent = 0) { /* Put something there if the node name is empty */ $nodename = trim(strtoupper($node->name)); @@ -80,7 +80,7 @@ } /* Recurse along the children to generate the remaining nodes */ - if($node->has_children()) { + if($node->hasChildren()) { foreach($node->child as $child) { dump_tree($child, $indent + 3); } |