Permalink
Browse files

Item1453: changed the switchboard into a hash, test update

git-svn-id: http://svn.foswiki.org/trunk@3454 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information...
CrawfordCurrie CrawfordCurrie
CrawfordCurrie authored and CrawfordCurrie committed Apr 16, 2009
1 parent bc145a1 commit c377b1973d002ca6e671895b3e11d8fe980ffd87
Showing with 2 additions and 2 deletions.
  1. +2 −2 UnitTestContrib/test/unit/FoswikiFnTestCase.pm
@@ -165,10 +165,10 @@ sub getUIFn {
my $script = shift;
require Foswiki::UI;
$this->assert( $Foswiki::cfg{SwitchBoard}{$script}, $script );
my $fn = $Foswiki::cfg{SwitchBoard}{$script}->[0];
my $fn = $Foswiki::cfg{SwitchBoard}{$script}->{package};
eval "require $fn";
die $@ if $@;
$fn .= '::' . $Foswiki::cfg{SwitchBoard}{$script}->[1];
$fn .= '::' . $Foswiki::cfg{SwitchBoard}{$script}->{function};
return \&$fn;
}

0 comments on commit c377b19

Please sign in to comment.