allowed for "linkonly" attribute
This commit is contained in:
parent
ec0ba5ac9f
commit
a4b291035c
1 changed files with 10 additions and 4 deletions
|
|
@ -21,11 +21,17 @@ sub process {
|
|||
my (@param, $temp, $login, $logout);
|
||||
@param = WebGUI::Macro::getParams($_[0]);
|
||||
if ($session{user}{userId} == 1) {
|
||||
$login = $param[0] || WebGUI::International::get(716);
|
||||
$temp = '<a class="loginToggleLink" href="'.WebGUI::URL::page('op=displayLogin').'">'.$login.'</a>';
|
||||
if ($param[0] eq "linkonly") {
|
||||
return WebGUI::URL::page('op=displayLogin');
|
||||
}
|
||||
$login = $param[0] || WebGUI::International::get(716);
|
||||
$temp = '<a class="loginToggleLink" href="'.WebGUI::URL::page('op=displayLogin').'">'.$login.'</a>';
|
||||
} else {
|
||||
$logout = $param[1] || WebGUI::International::get(717);
|
||||
$temp = '<a class="loginToggleLink" href="'.WebGUI::URL::page('op=logout').'">'.$logout.'</a>';
|
||||
if ($param[0] eq "linkonly") {
|
||||
return WebGUI::URL::page('op=logout');
|
||||
}
|
||||
$logout = $param[1] || WebGUI::International::get(717);
|
||||
$temp = '<a class="loginToggleLink" href="'.WebGUI::URL::page('op=logout').'">'.$logout.'</a>';
|
||||
}
|
||||
return $temp;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue