Skip to content

Commit

Permalink
Remove the AdminBar module.
Browse files Browse the repository at this point in the history
  • Loading branch information
perlDreamer committed Oct 11, 2011
1 parent a2a3b2d commit 917480f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion share/upgrades/7.10.18-8.0.0/removeAdminBar.pl
Expand Up @@ -4,6 +4,9 @@

use WebGUI::Macro;
use WebGUI::Asset::Template;
use File::Spec;
use Cwd qw(realpath);
use WebGUI::Paths;

my $removeAdminBar = sub {
my $macro = shift;
Expand Down Expand Up @@ -31,8 +34,15 @@

done;

start_step "Removing Admin Bar";
start_step "Removing Admin Bar from config file";

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

done;

start_step "Removing Admin Bar module";

my $webgui_root = realpath( File::Spec->catdir( WebGUI::Paths->configBase, (File::Spec->updir) x 1) );
unlink File::Spec->catfile($webgui_root, 'lib', 'WebGUI', 'Macro', 'AdminBar');

done;

0 comments on commit 917480f

Please sign in to comment.