Try cleaning out the bad spanish bare .pm file again. Fixes bug #11875.

This commit is contained in:
Colin Kuskie 2010-09-20 08:48:10 -07:00
parent 927781526f
commit f1af76a12b
2 changed files with 13 additions and 0 deletions

View file

@ -8,6 +8,7 @@
- fixed #11865: URL with slash no longer works.
- fixed #11861: addAttachment method removed from WebGUI 7 thus breaking the API
- fixed #11868: WebGUI::Session::Form::validToken throws unnecessary warnings
- fixed #11875: Error loading empty module
7.10.0
- fixed #11812: Checking www_ajaxSave's response in the cart js, urlencoding post parameters

View file

@ -32,6 +32,7 @@ my $session = start(); # this line required
# upgrade functions go here
uniqueProductLocations($session);
removeBadSpanishFile($session);
finish($session); # this line required
@ -64,6 +65,17 @@ sub uniqueProductLocations {
print "DONE!\n" unless $quiet;
}
#----------------------------------------------------------------------------
# Describe what our function does
sub removeBadSpanishFile {
my $session = shift;
print "\tRemove a bad Spanish translation file... " unless $quiet;
use File::Spec;
unlink File::Spec->catfile($webguiRoot, qw/lib WebGUi i18n Spanish .pm/);
# and here's our code
print "DONE!\n" unless $quiet;
}
#----------------------------------------------------------------------------
# Describe what our function does
#sub exampleFunction {