From b6b5e6c9392dbe86a38d1ef8c6b813c44efb1d21 Mon Sep 17 00:00:00 2001 From: Doug Bell Date: Fri, 9 Apr 2010 11:12:55 -0500 Subject: [PATCH] fix deep recursion on getContentLastModified --- lib/WebGUI/Asset/Wobject/Layout.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/WebGUI/Asset/Wobject/Layout.pm b/lib/WebGUI/Asset/Wobject/Layout.pm index c240b55dd..ceb7a9a10 100644 --- a/lib/WebGUI/Asset/Wobject/Layout.pm +++ b/lib/WebGUI/Asset/Wobject/Layout.pm @@ -362,7 +362,7 @@ of the page, by lineage. =cut -sub getContentLastModified { +override getContentLastModified => sub { # Buggo: this is a little too conservative. Children that are hidden maybe shouldn't count. Hm. my $self = shift; my $mtime = super(); @@ -371,7 +371,7 @@ sub getContentLastModified { $mtime = $child_mtime if ($child_mtime > $mtime); } return $mtime; -} +}; #-------------------------------------------------------------------