misc. syntax fixes.
This commit is contained in:
parent
4f582e5853
commit
6009ead286
5 changed files with 26 additions and 27 deletions
|
|
@ -618,7 +618,7 @@ Array reference of methods allowed to be called externally;
|
|||
sub new {
|
||||
my $self = {};
|
||||
my $class = shift;
|
||||
my $self->{_session} = shift;
|
||||
$self->{_session} = shift;
|
||||
$self->{authMethod} = shift;
|
||||
my $userId = shift || $self->{_session}->user->userId;
|
||||
$self->{user} = $self->{_session}->user;
|
||||
|
|
|
|||
|
|
@ -530,7 +530,7 @@ sub user {
|
|||
my $option = shift;
|
||||
if (defined $option) {
|
||||
$self->{_var}{userId} = $option->{userId} || $option->{user}->userId;
|
||||
$self->db-setRow("userSession","sessionId", $self->{_var});
|
||||
$self->db->setRow("userSession","sessionId", $self->{_var});
|
||||
if ($self->setting("passiveProfilingEnabled")) {
|
||||
$self->db->write("update passiveProfileLog set userId = ".$self->db->quote($self->{_var}{userId})." where sessionId = ".$self->db->quote($self->getId));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -176,7 +176,7 @@ Adds a FATAL type message to the log, outputs an error message to the user, and
|
|||
sub fatal {
|
||||
my $self = shift;
|
||||
my $message = shift;
|
||||
my $self->{_session}->http->setStatus("500","Server Error");
|
||||
$self->{_session}->http->setStatus("500","Server Error");
|
||||
Apache2::RequestUtil->request->content_type('text/html') if ($self->{_session}->request);
|
||||
$self->getLogger->fatal($message);
|
||||
$self->getLogger->debug("Stack trace for FATAL ".$message."\n".$self->getStackTrace());
|
||||
|
|
|
|||
|
|
@ -267,7 +267,7 @@ sub help {
|
|||
my $urlParams = shift;
|
||||
my $pageURL = shift || $self->session->url->getRequestedUrl;
|
||||
my ($output, $namespace);
|
||||
my $output = '<a href="'.$self->session->url->page('op=viewHelp;hid='.$urlParams.';namespace='.$namespace).
|
||||
$output = '<a href="'.$self->session->url->page('op=viewHelp;hid='.$urlParams.';namespace='.$namespace).
|
||||
'" target="_blank"><img src="'.$self->_getBaseURL().'help.gif" border="0" align="right" title="'.WebGUI::International->new($self->session,'Icon')->get('Help').'" Alt="'.WebGUI::International->new($self->session,'Icon')->get('Help').'"></a>';
|
||||
return $output;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue