Provide a way to lie about textlimit as far as API is concerned.
This commit is contained in:
parent
1aaded10b4
commit
6bf800c6c8
1 changed files with 2 additions and 0 deletions
|
@ -775,6 +775,8 @@
|
|||
$closed = (($a->config['register_policy'] == REGISTER_CLOSED) ? 'true' : 'false');
|
||||
$private = (($a->config['system']['block_public']) ? 'true' : 'false');
|
||||
$textlimit = (string) (($a->config['max_import_size']) ? $a->config['max_import_size'] : 200000);
|
||||
if($a->config['api_import_size'])
|
||||
$texlimit = string($a->config['api_import_size']);
|
||||
$ssl = (($a->config['system']['have_ssl']) ? 'true' : 'false');
|
||||
$sslserver = (($ssl === 'true') ? str_replace('http:','https:',$a->get_baseurl()) : '');
|
||||
|
||||
|
|
Loading…
Reference in a new issue