Commit: 569e7ead146a325bcb20f199a70db316edaf02c5

Author: Nate Abele | Date: 2010-07-05 11:35:35 -0400
Updating class references to be consistent with latest Lithium release.
diff --git a/views/collections/view.html.php b/views/collections/view.html.php index ced36c9..856bc50 100644 --- a/views/collections/view.html.php +++ b/views/collections/view.html.php @@ -1,5 +1,7 @@ <?php +use lithium\data\entity\Document; + $list = function($data, $topLevel = false) use (&$list, $h) { echo "<ul>"; foreach ($data as $key => $value) { @@ -11,14 +13,14 @@ $list = function($data, $topLevel = false) use (&$list, $h) { case (is_bool($value)): echo $value ? 'true' : 'false'; break; - case (is_scalar($value) || (is_object($value)) && !$value instanceof \lithium\data\collection\Document): + case (is_scalar($value) || (is_object($value)) && !$value instanceof Document): echo $h((string) $value); break; case ($value === null): echo 'null'; break; default: - $list($value, false); + $list($value instanceof Document ? $value->data() : $value, false); break; } echo '</div></li>';