diff --git a/lib/WebGUI/Operation/Shared.pm b/lib/WebGUI/Operation/Shared.pm index 32a24f776..50ed68c76 100644 --- a/lib/WebGUI/Operation/Shared.pm +++ b/lib/WebGUI/Operation/Shared.pm @@ -11,14 +11,10 @@ package WebGUI::Operation::Shared; # http://www.plainblack.com info@plainblack.com #------------------------------------------------------------------- -use Exporter; use strict; use WebGUI::International; -use WebGUI::SQL; use Safe; -our @ISA = qw(Exporter); -our @EXPORT = qw(&menuWrapper); #------------------------------------------------------------------- sub accountOptions { @@ -69,23 +65,6 @@ our @EXPORT = qw(&menuWrapper); return \@array; } -#------------------------------------------------------------------- -sub menuWrapper { - my $session = shift; - my ($output, $key); - my $i18n = WebGUI::International->new($session); - $session->style->useAdminStyle(1); - $output = ' -
'; - $output .= $_[0]; - $output .= ''; - foreach $key (keys %{$_[1]}) { - $output .= '
  • '.$_[1]->{$key}.'
  • '; - } - $output .= '
  • '.$i18n->get(493).'
  • '; - $output .= '
    '; - return $output; -} #------------------------------------------------------------------- # This function is here to replace the dangerous eval calls in the User Profile System. diff --git a/lib/WebGUI/Session/Style.pm b/lib/WebGUI/Session/Style.pm index 76164ee9b..8c59b8a98 100644 --- a/lib/WebGUI/Session/Style.pm +++ b/lib/WebGUI/Session/Style.pm @@ -52,6 +52,20 @@ These methods are available from this class: =cut +#------------------------------------------------------------------- + +=head DESTROY ( ) + +Deconstructor. + +=cut + +sub DESTROY { + my $self = shift; + undef $self; +} + + #------------------------------------------------------------------- =head2 generateAdditionalHeadTags ( )