} break; case 'company_logo': Debug::Text('Company Logo...', __FILE__, __LINE__, __METHOD__, 10); $cf = new CompanyFactory(); $file_name = $cf->getLogoFileName($current_company->getId()); Debug::Text('File Name: ' . $file_name, __FILE__, __LINE__, __METHOD__, 10); if ($file_name != '' and file_exists($file_name)) { $params['file'] = $file_name; $params['cache'] = TRUE; } break; case 'primary_company_logo': Debug::Text('Primary Company Logo...', __FILE__, __LINE__, __METHOD__, 10); $cf = new CompanyFactory(); $file_name = $cf->getLogoFileName(PRIMARY_COMPANY_ID); Debug::Text('File Name: ' . $file_name, __FILE__, __LINE__, __METHOD__, 10); if ($file_name != '' and file_exists($file_name)) { $params['file'] = $file_name; $params['cache'] = TRUE; } break; default: break; } if (isset($params)) { HTTP_Download::staticSend($params); } else { echo "File does not exist, unable to download!<br>\n"; Debug::writeToLog(); }