[Rt-commit] r15554 - in rt/branches/3.999-DANGEROUS: lib/RT/Interface

sunnavy at bestpractical.com sunnavy at bestpractical.com
Wed Aug 27 14:02:03 EDT 2008


Author: sunnavy
Date: Wed Aug 27 14:02:01 2008
New Revision: 15554

Modified:
   rt/branches/3.999-DANGEROUS/   (props changed)
   rt/branches/3.999-DANGEROUS/lib/RT/Interface/CLI.pm

Log:
 r16165 at sunnavys-mb:  sunnavy | 2008-08-28 01:52:48 +0800
 tiny fix


Modified: rt/branches/3.999-DANGEROUS/lib/RT/Interface/CLI.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/Interface/CLI.pm	(original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/Interface/CLI.pm	Wed Aug 27 14:02:01 2008
@@ -60,7 +60,7 @@
 
     # your exported package globals go here,
     # as well as any optionally exported functions
-    @EXPORT_OK = qw(&CleanEnv
+    @EXPORT_OK = qw(&clean_env
         &get_current_user &get_message_content &debug &loc);
 }
 
@@ -138,8 +138,8 @@
         #If the current user is 0, then RT will assume that the User object
         #is that of the currentuser.
 
-        $CurrentUser = RT::CurrentUser->new();
-        $CurrentUser->load_by_gecos($gecos);
+        $CurrentUser = RT::CurrentUser->new( gecos => $gecos );
+        
 
         unless ( $CurrentUser->id ) {
             Jifty->log->debug("No user with a unix login of '$gecos' was found. ");


More information about the Rt-commit mailing list