From 4c3a26b023565a97dcd9a94d66a83adc015a1c3d Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Tue, 23 Mar 2010 11:52:18 -0700 Subject: [PATCH] WikiPage uses an role to force hiddenness now. No need to subclass addRevision. --- lib/WebGUI/Asset/WikiPage.pm | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/lib/WebGUI/Asset/WikiPage.pm b/lib/WebGUI/Asset/WikiPage.pm index 479de701f..bcd3e61bf 100644 --- a/lib/WebGUI/Asset/WikiPage.pm +++ b/lib/WebGUI/Asset/WikiPage.pm @@ -74,24 +74,6 @@ sub addChild { #------------------------------------------------------------------- -=head2 addRevision ( ) - -Override the default method in order to deal with attachments. - -=cut - -sub addRevision { - my $self = shift; - my $newSelf = $self->next::method(@_); - my $now = time(); - $newSelf->update({ - isHidden => 1, - }); - return $newSelf; -} - -#------------------------------------------------------------------- - =head2 canAdd ($session) This functions as a class or an object method. It sets the subclassGroupId to 7