Permalink
Browse files

Item1453: support array entries in the switchboard

git-svn-id: http://svn.foswiki.org/trunk@3459 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information...
CrawfordCurrie CrawfordCurrie
CrawfordCurrie authored and CrawfordCurrie committed Apr 16, 2009
1 parent a5b89df commit b67fd14af0e3db885e4b867e629b51700d2d7fb4
Showing with 10 additions and 0 deletions.
  1. +10 −0 core/lib/Foswiki/UI.pm
View
@@ -174,6 +174,16 @@ sub handleRequest {
return $res;
}
if (ref($dispatcher) eq 'ARRAY') {
# Old-style array entry in switchboard from a plugin
my @array = @$dispatcher;
$dispatcher = {
package => $array[0],
function => $array{1],
context => $array[2],
};
}
if ( $dispatcher->{package} && !$isInitialized{$dispatcher->{package}} ) {
eval qq(use $dispatcher->{package});
die $@ if $@;

0 comments on commit b67fd14

Please sign in to comment.