Config::load();
if (empty(Config::get('system', 'pidfile'))) {
- die('Please set system.pidfile in config/local.ini.php. For example:'."\n".
- '[system]'."\n".
- 'pidfile = /path/to/daemon.pid'."\n");
+ die(<<<TXT
+Please set system.pidfile in config/local.config.php. For example:
+
+ 'system' => [
+ 'pidfile' => '/path/to/daemon.pid',
+ ],
+TXT
+ );
}
$pidfile = Config::get('system', 'pidfile');
* @brief Image storage quality.
*
* Lower numbers save space at cost of image detail.
- * For ease of upgrade, please do not change here. Set [system] jpegquality = n in config/local.ini.php,
+ * For ease of upgrade, please do not change here. Set system.jpegquality = n in config/local.config.php,
* where n is between 1 and 100, and with very poor results below about 50
*/
define('JPEG_QUALITY', 100);
/**
- * [system] png_quality = n where is between 0 (uncompressed) to 9
+ * system.png_quality = n where is between 0 (uncompressed) to 9
*/
define('PNG_QUALITY', 8);
* this length (on the longest side, the other side will be scaled appropriately).
* Modify this value using
*
- * [system]
- * max_image_length = n;
+ * 'system' => [
+ * 'max_image_length' => 'n',
+ * ...
+ * ],
*
- * in config/local.ini.php
+ * in config/local.config.php
*
* If you don't want to set a maximum length, set to -1. The default value is
* defined by 'MAX_IMAGE_LENGTH' below.
// Legacy config file warning
if (file_exists('.htconfig.php')) {
$showwarning = true;
- $warningtext[] = L10n::t('Friendica\'s configuration now is stored in config/local.ini.php, please copy config/local-sample.ini.php and move your config from <code>.htconfig.php</code>. See <a href="%s">the Config help page</a> for help with the transition.', $a->getBaseURL() . '/help/Config');
+ $warningtext[] = L10n::t('Friendica\'s configuration now is stored in config/local.config.php, please copy config/local-sample.config.php and move your config from <code>.htconfig.php</code>. See <a href="%s">the Config help page</a> for help with the transition.', $a->getBaseURL() . '/help/Config');
}
// Check server vitality
$this->in_db[$cat][$k] = true;
return $value;
} elseif (isset($a->config[$cat][$k])) {
- // Assign the value (mostly) from config/local.ini.php file to the cache
+ // Assign the value (mostly) from config/local.config.php file to the cache
$this->cache[$cat][$k] = $a->config[$cat][$k];
$this->in_db[$cat][$k] = false;
return $a->config[$cat][$k];
} elseif (isset($a->config[$k])) {
- // Assign the value (mostly) from config/local.ini.php file to the cache
+ // Assign the value (mostly) from config/local.config.php file to the cache
$this->cache[$k] = $a->config[$k];
$this->in_db[$k] = false;
Sets the value of the provided key in the category
Notes:
- Setting config entries which are manually set in config/local.ini.php may result in
+ Setting config entries which are manually set in config/local.config.php may result in
conflict between database settings and the manual startup settings.
Options
Sets the value of the provided key in the category
Notes:
- Setting config entries which are manually set in config/local.ini.php may result in
+ Setting config entries which are manually set in config/local.config.php may result in
conflict between database settings and the manual startup settings.
Options