From b125af632a21c23e4b00dccf278f5cfa73b1e01d Mon Sep 17 00:00:00 2001 From: Mark Holtzhausen Date: Mon, 21 Sep 2009 16:35:08 +0200 Subject: [PATCH] Download Error Fix --- ktwebservice/KTDownloadManager.inc.php | 2 ++ lib/documentmanagement/Document.inc | 2 ++ webservice/clienttools/services/3.6.1/kt.php | 5 ++--- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ktwebservice/KTDownloadManager.inc.php b/ktwebservice/KTDownloadManager.inc.php index 1779615..97f69cb 100644 --- a/ktwebservice/KTDownloadManager.inc.php +++ b/ktwebservice/KTDownloadManager.inc.php @@ -105,6 +105,8 @@ class KTDownloadManager 'document_id'=>$doc_id, 'session'=>$this->session, 'download_date'=>date('Y-m-d H:i:s'), + 'content_version'=>$document->document->getContentVersionId(), + 'filesize'=>$document->document->getFileSize(), 'hash'=>$hash ), array('noid'=>true) diff --git a/lib/documentmanagement/Document.inc b/lib/documentmanagement/Document.inc index 7b37ede..a65d61b 100644 --- a/lib/documentmanagement/Document.inc +++ b/lib/documentmanagement/Document.inc @@ -169,6 +169,8 @@ class Document { function getStoragePath() { return $this->_oDocumentContentVersion->getStoragePath(); } function setStoragePath($sNewValue) { $this->_oDocumentContentVersion->setStoragePath($sNewValue); } + + function getContentVersion(){return $this->_oDocumentContentVersion->getVersion();} diff --git a/webservice/clienttools/services/3.6.1/kt.php b/webservice/clienttools/services/3.6.1/kt.php index e4106fc..b93f28b 100644 --- a/webservice/clienttools/services/3.6.1/kt.php +++ b/webservice/clienttools/services/3.6.1/kt.php @@ -482,7 +482,7 @@ class kt extends client_service { */ $response['status_code']=0; - $response['message']=$url; + $response['message']=$url.'&apptype='.$params['app_type']; $response['filename']=$docname; $this->addDebug('effective params',$params); $this->setResponse($response); @@ -651,8 +651,7 @@ class kt extends client_service { $this->response= array('status_code'=>0, 'document_id'=>$document_id, 'content_id'=>$content_id); } - - function get_all_client_policies(){ + function get_all_client_policies(){ $config=KTConfig::getSingleton(); $this->addDebug('KTConfig Singleton',$config); -- libgit2 0.21.4