[open-ils-commits] r15890 - trunk/Open-ILS/src/support-scripts (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Mar 17 20:04:02 EDT 2010
Author: erickson
Date: 2010-03-17 20:04:01 -0400 (Wed, 17 Mar 2010)
New Revision: 15890
Modified:
trunk/Open-ILS/src/support-scripts/oils_header.pl
Log:
allow oils_logout to take a specific argument, optionally
Modified: trunk/Open-ILS/src/support-scripts/oils_header.pl
===================================================================
--- trunk/Open-ILS/src/support-scripts/oils_header.pl 2010-03-18 00:04:00 UTC (rev 15889)
+++ trunk/Open-ILS/src/support-scripts/oils_header.pl 2010-03-18 00:04:01 UTC (rev 15890)
@@ -169,7 +169,7 @@
oils_event_die($response);
- $authtime = $response->{payload}->{authtime};
+ $authtime = $response->{payload}->{authtime};
$authtoken = $response->{payload}->{authtoken};
return $authtoken;
}
@@ -181,7 +181,7 @@
sub oils_logout {
$apputils->simplereq(
'open-ils.auth',
- 'open-ils.auth.session.delete', $authtoken );
+ 'open-ils.auth.session.delete', (@_ ? shift : $authtoken) );
}
#----------------------------------------------------------------
@@ -198,7 +198,7 @@
#----------------------------------------------------------------
# var $response = simplereq( $service, $method, @params );
#----------------------------------------------------------------
-sub simplereq { return $apputils->simplereq(@_); }
+sub simplereq { return $apputils->simplereq(@_); }
sub osrf_request { return $apputils->simplereq(@_); }
1;
More information about the open-ils-commits
mailing list