Replace the direct access of config variables

This commit is contained in:
Michael 2017-01-17 19:21:46 +00:00
parent b935b57c66
commit 53393233c3
5 changed files with 25 additions and 18 deletions

View file

@ -5,6 +5,9 @@
*
* @todo Automatically detect if incoming data is HTML or BBCode
*/
use \Friendica\Core\Config;
require_once('include/HTTPExceptions.php');
require_once('include/bbcode.php');
@ -2696,11 +2699,11 @@
$logo = App::get_baseurl() . '/images/friendica-64.png';
$email = $a->config['admin_email'];
$closed = (($a->config['register_policy'] == REGISTER_CLOSED) ? 'true' : 'false');
$private = (($a->config['system']['block_public']) ? 'true' : 'false');
$private = ((Config::get('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');
$ssl = ((Config::get('system', 'have_ssl')) ? 'true' : 'false');
$sslserver = (($ssl === 'true') ? str_replace('http:','https:',App::get_baseurl()) : '');
$config = array(