mirror of
https://github.com/friendica/friendica
synced 2025-04-26 21:50:11 +00:00
Replace the direct access of config variables
This commit is contained in:
parent
b935b57c66
commit
53393233c3
5 changed files with 25 additions and 18 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue