Skip to content

Commit 917480f

Browse files
committedOct 11, 2011
Remove the AdminBar module.
1 parent a2a3b2d commit 917480f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed
 

‎share/upgrades/7.10.18-8.0.0/removeAdminBar.pl

+11-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
use WebGUI::Macro;
66
use WebGUI::Asset::Template;
7+
use File::Spec;
8+
use Cwd qw(realpath);
9+
use WebGUI::Paths;
710

811
my $removeAdminBar = sub {
912
my $macro = shift;
@@ -31,8 +34,15 @@
3134

3235
done;
3336

34-
start_step "Removing Admin Bar";
37+
start_step "Removing Admin Bar from config file";
3538

3639
session->config->delete( 'macros/AdminBar' );
3740

3841
done;
42+
43+
start_step "Removing Admin Bar module";
44+
45+
my $webgui_root = realpath( File::Spec->catdir( WebGUI::Paths->configBase, (File::Spec->updir) x 1) );
46+
unlink File::Spec->catfile($webgui_root, 'lib', 'WebGUI', 'Macro', 'AdminBar');
47+
48+
done;

0 commit comments

Comments
 (0)
Please sign in to comment.