- Remove triple points in config example
],
</pre></td>
</tr>
+ <tr>
+ <td><pre>
+$a->config['register_policy'] = REGISTER_CLOSED;
+</pre></td>
+ <td><pre>
+'config' => [
+ 'register_policty' => REGISTER_CLOSED,
+],
+</pre></td>
+ </tr>
<tr>
<td><pre>
$a->path = "value";
],
</pre></td>
</tr>
+ <tr>
+ <td><pre>
+[config]
+register_policty = REGISTER_CLOSED
+</pre></td>
+ <td><pre>
+'config' => [
+ 'register_policty' => REGISTER_CLOSED,
+],
+</pre></td>
+ </tr>
<tr>
<td><pre>
[section]
'database' => [
'hostname' => 'your.mysqlhost.com:123456',
- ...
]
If all of the following environment variables are set, Friendica will use them instead of the previously configured variables for the db: