From 2bd090cd2b11c693c17add737c493b24e025488e Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Tue, 3 Jan 2012 15:46:46 -0500 Subject: [PATCH] use proper mechanism for deleting statistics modules --- share/upgrades/7.10.23-8.0.0/removeWebGUIStatistics.pl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/share/upgrades/7.10.23-8.0.0/removeWebGUIStatistics.pl b/share/upgrades/7.10.23-8.0.0/removeWebGUIStatistics.pl index d67092bf6..ec761a57e 100644 --- a/share/upgrades/7.10.23-8.0.0/removeWebGUIStatistics.pl +++ b/share/upgrades/7.10.23-8.0.0/removeWebGUIStatistics.pl @@ -18,8 +18,7 @@ my $task = WebGUI::Workflow::Cron->new(session, 'send_webgui_statistics'); $task && $task->delete; report "Deleting files"; -my $webgui_root = realpath( File::Spec->catdir( WebGUI::Paths->configBase, (File::Spec->updir) x 1 ) ); -unlink File::Spec->catfile($webgui_root, 'lib', 'WebGUI', 'Operation', 'Statistics.pm'); -unlink File::Spec->catfile($webgui_root, 'lib', 'WebGUI', 'Workflow', 'Activity', 'SendWebguiStats.pm'); +rm_lib 'WebGUI::Operation::Statistics'; +rm_lib 'WebGUI::Workflow::Activity::SendWebguiStats'; done;