mirror of
https://github.com/friendica/friendica
synced 2024-12-22 22:00:16 +00:00
Fix binary_operator_spaces errors
This commit is contained in:
parent
0451f2dfa1
commit
fcf59dc245
6 changed files with 21 additions and 21 deletions
|
@ -59,7 +59,7 @@ class InstanceV2 extends BaseApi
|
|||
parent::__construct($app, $l10n, $baseUrl, $args, $logger, $profiler, $response, $server, $parameters);
|
||||
|
||||
$this->database = $database;
|
||||
$this->config = $config;
|
||||
$this->config = $config;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -79,18 +79,18 @@ class InstanceV2 extends BaseDataTransferObject
|
|||
*/
|
||||
public function __construct(IManageConfigValues $config, BaseURL $baseUrl, Database $database, array $rules = [])
|
||||
{
|
||||
$this->domain = $baseUrl->getHostname();
|
||||
$this->title = $config->get('config', 'sitename');
|
||||
$this->version = '2.8.0 (compatible; Friendica ' . App::VERSION . ')';
|
||||
$this->source_url = null; //not supported yet
|
||||
$this->description = $config->get('config', 'info');
|
||||
$this->usage = new Usage($config);
|
||||
$this->thumbnail = new Thumbnail($baseUrl);
|
||||
$this->languages = [$config->get('system', 'language')];
|
||||
$this->configuration = new Configuration();
|
||||
$this->registrations = new Registrations();
|
||||
$this->contact = new Contact($database);
|
||||
$this->rules = $rules;
|
||||
$this->friendica = new FriendicaExtensions();
|
||||
$this->domain = $baseUrl->getHostname();
|
||||
$this->title = $config->get('config', 'sitename');
|
||||
$this->version = '2.8.0 (compatible; Friendica ' . App::VERSION . ')';
|
||||
$this->source_url = null; //not supported yet
|
||||
$this->description = $config->get('config', 'info');
|
||||
$this->usage = new Usage($config);
|
||||
$this->thumbnail = new Thumbnail($baseUrl);
|
||||
$this->languages = [$config->get('system', 'language')];
|
||||
$this->configuration = new Configuration();
|
||||
$this->registrations = new Registrations();
|
||||
$this->contact = new Contact($database);
|
||||
$this->rules = $rules;
|
||||
$this->friendica = new FriendicaExtensions();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ class Contact extends BaseDataTransferObject
|
|||
|
||||
public function __construct(Database $database)
|
||||
{
|
||||
$this->email = implode(',', User::getAdminEmailList());
|
||||
$this->email = implode(',', User::getAdminEmailList());
|
||||
$administrator = User::getFirstAdmin();
|
||||
if ($administrator) {
|
||||
$adminContact = $database->selectFirst(
|
||||
|
|
|
@ -24,8 +24,8 @@ class FriendicaExtensions extends BaseDataTransferObject
|
|||
|
||||
public function __construct()
|
||||
{
|
||||
$this->version = App::VERSION;
|
||||
$this->codename = App::CODENAME;
|
||||
$this->version = App::VERSION;
|
||||
$this->codename = App::CODENAME;
|
||||
$this->db_version = DI::config()->get('system', 'build');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -39,9 +39,9 @@ class Registrations extends BaseDataTransferObject
|
|||
|
||||
public function __construct()
|
||||
{
|
||||
$config = DI::config();
|
||||
$register_policy = intval($config->get('config', 'register_policy'));
|
||||
$this->enabled = ($register_policy != Register::CLOSED);
|
||||
$config = DI::config();
|
||||
$register_policy = intval($config->get('config', 'register_policy'));
|
||||
$this->enabled = ($register_policy != Register::CLOSED);
|
||||
$this->approval_required = ($register_policy == Register::APPROVE);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,7 +36,7 @@ class StatusesConfig extends BaseDataTransferObject
|
|||
|
||||
public function __construct()
|
||||
{
|
||||
$config = DI::config();
|
||||
$config = DI::config();
|
||||
$this->max_characters = (int)$config->get(
|
||||
'config',
|
||||
'api_import_size',
|
||||
|
|
Loading…
Reference in a new issue