Commit 05640152d9b96d065756b0120db62e0e5b5b147e

Authored by conradverm
1 parent cd024ee9

KTS-1694

"SOAP Webservice Implementation"
Updated. Initial modifications to cater for passing by reference under PHP4.

Reviewed By: Kevin Fourie

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@6474 c91229c3-7414-0410-bfa2-8a42b809f60b
ktwebservice/KTUploadManager.inc.php
@@ -41,9 +41,15 @@ class KTUploadManager @@ -41,9 +41,15 @@ class KTUploadManager
41 $this->temp_dir= $config->get('webservice/uploadDirectory'); 41 $this->temp_dir= $config->get('webservice/uploadDirectory');
42 } 42 }
43 43
  44 + /**
  45 + * Sets the current session.
  46 + *
  47 + * @param KTAPI_Session $session
  48 + */
44 function set_session($session) 49 function set_session($session)
45 { 50 {
46 - $this->userid=$session->get_user()->getId(); 51 + $user = &$session->get_user();
  52 + $this->userid=$user->getId();
47 $this->session = $session->get_session(); 53 $this->session = $session->get_session();
48 } 54 }
49 55