Skip to content

Commit

Permalink
Item12952: add configure dispatch target
Browse files Browse the repository at this point in the history
  • Loading branch information
crawford committed Aug 27, 2014
1 parent 829f732 commit fc572d2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/lib/Foswiki/UI.pm
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ BEGIN {
function => 'changes',
context => { changes => 1 },
};
$Foswiki::cfg{SwitchBoard}{configure} = {
package => 'Foswiki::UI::Configure',
function => 'configure'
};
$Foswiki::cfg{SwitchBoard}{edit} = {
package => 'Foswiki::UI::Edit',
function => 'edit',
Expand Down Expand Up @@ -185,6 +189,7 @@ sub handleRequest {
require Foswiki::Configure::ImageTest;
return Foswiki::Configure::ImageTest::respond($req);
}

my $dispatcher = $Foswiki::cfg{SwitchBoard}{ $req->action() };
unless ( defined $dispatcher ) {
$res = new Foswiki::Response();
Expand Down

0 comments on commit fc572d2

Please sign in to comment.