CC-1799 Put Airtime Storage into a Human Readable File Naming Convention
fixing problem with StoredFile::Insert()
This commit is contained in:
parent
a4b92fe72d
commit
9da314979e
2 changed files with 13 additions and 11 deletions
|
@ -376,10 +376,6 @@ class ApiController extends Zend_Controller_Action
|
|||
public function mediaItemStatusAction() {
|
||||
global $CC_CONFIG;
|
||||
|
||||
// disable the view and the layout
|
||||
$this->view->layout()->disableLayout();
|
||||
$this->_helper->viewRenderer->setNoRender(true);
|
||||
|
||||
$api_key = $this->_getParam('api_key');
|
||||
if (!in_array($api_key, $CC_CONFIG["apiKey"]))
|
||||
{
|
||||
|
@ -415,6 +411,7 @@ class ApiController extends Zend_Controller_Action
|
|||
$md = $this->_getParam('md');
|
||||
$filepath = $md['MDATA_KEY_FILEPATH'];
|
||||
$filepath = str_replace("\\", "", $filepath);
|
||||
|
||||
$file = StoredFile::RecallByFilepath($filepath);
|
||||
|
||||
//New file added to Airtime
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue