CC-2403: Downloading a file via the web UI returns an absolute path, not relative

-fixed
This commit is contained in:
martin 2011-06-22 16:50:58 -04:00
parent 532ba46cba
commit 8f0b965ea0
2 changed files with 11 additions and 1 deletions

View file

@ -79,7 +79,7 @@ class LibraryController extends Zend_Controller_Action
$file_id = $this->_getParam('id', null);
$file = StoredFile::Recall($file_id);
$url = $file->getFileUrl().'/api_key/'.$CC_CONFIG["apiKey"][0].'/download/true';
$url = $file->getRelativeFileUrl().'/api_key/'.$CC_CONFIG["apiKey"][0].'/download/true';
$menu[] = array('action' => array('type' => 'gourl', 'url' => $url),
'title' => 'Download');