From 5927ab0bbf5692382ac55d4fa0f5f512799d2d55 Mon Sep 17 00:00:00 2001 From: Peter Rotich <peter@osticket.com> Date: Mon, 23 Jul 2012 16:58:40 -0400 Subject: [PATCH] Add config info for SCP. --- include/ajax.config.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/include/ajax.config.php b/include/ajax.config.php index fc9fb2c3f..5a60bc459 100644 --- a/include/ajax.config.php +++ b/include/ajax.config.php @@ -19,13 +19,14 @@ if(!defined('INCLUDE_DIR')) die('!'); class ConfigAjaxAPI extends AjaxController { //config info UI might need. - function scp_ui() { + function scp() { global $thisstaff, $cfg; - $config=array('ticket_lock_time'=>($cfg->getLockTime()*3600), - 'max_attachments'=>$cfg->getMaxFileUploads(), - 'max_file_size'=>$cfg->getMaxFileSize()); - + $config=array('lock_time' => ($cfg->getLockTime()*3600), + 'file_types' => $cfg->getAllowedFileTypes(), + 'max_file_size' => (int) $cfg->getMaxFileSize(), + 'max_file_uploads'=> (int) $cfg->getStaffMaxFileUploads() + ); return $this->json_encode($config); } } -- GitLab