Browse Source

Replace *.ini.php by *.config.php in comments

pull/6199/head
Hypolite Petovan 2 years ago
parent
commit
c964e193b9
6 changed files with 20 additions and 13 deletions
  1. +8
    -3
      bin/daemon.php
  2. +7
    -5
      boot.php
  3. +1
    -1
      mod/admin.php
  4. +2
    -2
      src/Core/Config/JITConfigAdapter.php
  5. +1
    -1
      src/Core/Console/Config.php
  6. +1
    -1
      tests/src/Core/Console/ConfigConsoleTest.php

+ 8
- 3
bin/daemon.php View File

@ -42,9 +42,14 @@ if ($a->getMode()->isInstall()) {
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');


+ 7
- 5
boot.php View File

@ -56,13 +56,13 @@ define('EOL', "<br />\r\n");
* @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);
@ -73,10 +73,12 @@ 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.


+ 1
- 1
mod/admin.php View File

@ -914,7 +914,7 @@ function admin_page_summary(App $a)
// 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


+ 2
- 2
src/Core/Config/JITConfigAdapter.php View File

@ -65,13 +65,13 @@ class JITConfigAdapter extends BaseObject implements IConfigAdapter
$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;


+ 1
- 1
src/Core/Console/Config.php View File

@ -59,7 +59,7 @@ Description
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


+ 1
- 1
tests/src/Core/Console/ConfigConsoleTest.php View File

@ -139,7 +139,7 @@ Description
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


Loading…
Cancel
Save