Replace *.ini.php by *.config.php in comments
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 25 Nov 2018 06:44:51 +0000 (01:44 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 25 Nov 2018 06:44:51 +0000 (01:44 -0500)
bin/daemon.php
boot.php
mod/admin.php
src/Core/Config/JITConfigAdapter.php
src/Core/Console/Config.php
tests/src/Core/Console/ConfigConsoleTest.php

index f628031..9df8b89 100755 (executable)
@@ -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');
index 6373b2c..f3d1f6f 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -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.
index 5bf5542..ab5c37e 100644 (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
index b985d91..2018f58 100644 (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;
 
index 3b92d5a..ce367ff 100644 (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
index 8f845ae..3ba2bd6 100644 (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