diff --git a/www-api/app/Controllers/WrenchMedia.php b/www-api/app/Controllers/WrenchMedia.php index d70fcabb..8f4665e5 100644 --- a/www-api/app/Controllers/WrenchMedia.php +++ b/www-api/app/Controllers/WrenchMedia.php @@ -74,14 +74,15 @@ class WrenchMedia extends BaseController #define WRENCH_FILE_FAMILY 400 */ - if( $this->sessionCheckString($sessionId)== PHP_API_OK ){ - log_message('critical', "Media gate Path GATE 004 - Pass Session Test"); - } - else{ - // return 0; for now - no session - log_message('critical', "Media gate Path GATE 004 - Fail Session Test"); - } - + /* + if( $this->sessionCheckString($sessionId)== PHP_API_OK ){ + log_message('critical', "Media gate Path GATE 004 - Pass Session Test"); + } + else{ + // return 0; for now - no session + log_message('critical', "Media gate Path GATE 004 - Fail Session Test"); + } + */ log_message('critical', "Media gate Path GATE 005 - Ready to File File ****"); $file = FCPATH.'/assets/images/books.png'; @@ -100,7 +101,7 @@ class WrenchMedia extends BaseController $data = [ 'action' => WRENCHBOARD_GET_MEDIA, 'sessionid' => $sessionId, - 'file_section' => $fileSection, + 'file_section' => $supportedSections[$fileSection], 'file_uid' => $fileUID, 'file_section_no' =>$supportedSections[$fileSection] ];