Skip to content

Commit

Permalink
Transform ActionMaps to allow hyphens in the name, internally convert…
Browse files Browse the repository at this point in the history
…ed to underscores
  • Loading branch information
David Christensen committed Feb 24, 2010
1 parent 5e5ffbb commit a9224c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Vend/Dispatch.pm
Expand Up @@ -1786,6 +1786,7 @@ EOF
}
else {
($Vend::Action) = $Vend::FinalPath =~ m{\A([^/]*)};
$Vend::Action =~ s/-/_/g; # allow hyphens as synonyms for underscores for SEO prettiness
}

#::logGlobal("action=$Vend::Action path=$Vend::FinalPath");
Expand Down

0 comments on commit a9224c0

Please sign in to comment.