fix - Unable to add EventsCalendar
This commit is contained in:
parent
2d69f47e99
commit
7d0cbe62ca
2 changed files with 11 additions and 6 deletions
|
|
@ -20,19 +20,22 @@ my $quiet; # this line required
|
|||
|
||||
my $session = start(); # this line required
|
||||
|
||||
# upgrade functions go here
|
||||
cleanupEventsCalendar($session);
|
||||
|
||||
finish($session); # this line required
|
||||
|
||||
|
||||
##-------------------------------------------------
|
||||
#sub exampleFunction {
|
||||
# my $session = shift;
|
||||
# print "\tWe're doing some stuff here that you should know about.\n" unless ($quiet);
|
||||
# # and here's our code
|
||||
#}
|
||||
sub cleanupEventsCalendar {
|
||||
my $session = shift;
|
||||
print "\tRemoving the rest of the old EventsCalendar wobject\n" unless ($quiet);
|
||||
unlink("../../lib/WebGUI/Asset/Wobject/EventsCalendar.pm");
|
||||
unlink("../../lib/WebGUI/i18n/English/Asset_EventsCalendar.pm");
|
||||
unlink("../../lib/WebGUI/Help/Asset_EventsCalendar.pm");
|
||||
$session->config->deleteFromArray("assets","WebGUI::Asset::Wobject::EventsCalendar")
|
||||
|
||||
|
||||
}
|
||||
|
||||
# ---- DO NOT EDIT BELOW THIS LINE ----
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue