the Slash_gatewayUrl and PageUrl macros now accept optional URL arguments
This commit is contained in:
parent
dfb19389a7
commit
66b59adde8
7 changed files with 121 additions and 15 deletions
|
|
@ -20,16 +20,25 @@ Package WebGUI::Macro::Slash_gatewayUrl
|
|||
|
||||
Macro for returning the gateway URL (defined in the WebGUI config file) to the site.
|
||||
|
||||
=head2 process ( )
|
||||
=head2 process ( $session, $url )
|
||||
|
||||
process is really a wrapper around $session->url->gateway();
|
||||
|
||||
=head3 $session
|
||||
|
||||
A WebGUI session variable.
|
||||
|
||||
=head3 $url
|
||||
|
||||
A url which will be passed to $session->url->gateway().
|
||||
|
||||
=cut
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub process {
|
||||
my $session = shift;
|
||||
return $session->url->gateway();
|
||||
my $url = shift;
|
||||
return $session->url->gateway($url);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue