Commit graph

20578 commits

Author SHA1 Message Date
Hypolite Petovan
763c66dd49 Improve console/config display
- Add visual distinction between get/set value
2018-07-16 19:38:18 -04:00
Hypolite Petovan
796eb1c874 Fix undefined index in mod/settings 2018-07-16 19:38:18 -04:00
Hypolite Petovan
3001951075 Move the addon-specific config in config/addon.ini.php
- Add sample addon.ini.php file
- Add config/addon.ini.php file to git ignore
2018-07-16 19:38:18 -04:00
Hypolite Petovan
e72ff9ee95 Fix missing use in mod/ping 2018-07-16 19:38:17 -04:00
Hypolite Petovan
b343987120 Fix segfault in PHP 5.6 parsing INI strings
- add documentation to generated local.ini.php file
2018-07-16 19:38:17 -04:00
Hypolite Petovan
c8d3067d0a Fix JITConfigAdapter to retrieve non-db config.* values 2018-07-16 19:38:17 -04:00
Hypolite Petovan
bd04c03c9f Fix urlpath determination on the root page 2018-07-16 19:38:17 -04:00
Hypolite Petovan
39767fb366 Fix undefined index notice messages in mod/install 2018-07-16 19:38:17 -04:00
Hypolite Petovan
0cbe3aa8e6 Remove global $db variable 2018-07-16 19:38:17 -04:00
Hypolite Petovan
820afa2284 Replace global $a with BaseObject::getApp() 2018-07-16 19:38:17 -04:00
Hypolite Petovan
d0780ccf7d Replace global $lang with system.language 2018-07-16 19:38:17 -04:00
Hypolite Petovan
adacf421a6 Remove deprecated functions in include/text 2018-07-16 19:38:17 -04:00
Hypolite Petovan
4161908f43 Fix formatting in mod/help 2018-07-16 19:38:17 -04:00
Hypolite Petovan
627fa08a1b Chasing a segfault in PHP 5.6 tests 2018-07-16 19:38:17 -04:00
Hypolite Petovan
5906c7e013 Remove api test pconfig debug 2018-07-16 19:38:17 -04:00
Hypolite Petovan
7b8410f5ef Fix wrong mode for App since local conf file wasn't present 2018-07-16 19:38:17 -04:00
Hypolite Petovan
478b42e88f Fix debug 2018-07-16 19:38:16 -04:00
Hypolite Petovan
6987129a00 Add yet more pconfig debug to testApiGetUserWithCustomFrioSchema 2018-07-16 19:38:16 -04:00
Hypolite Petovan
224765cdf5 Wrong table name 2018-07-16 19:38:16 -04:00
Hypolite Petovan
f8a90f3425 Add more api test debug 2018-07-16 19:38:16 -04:00
Hypolite Petovan
de0afd3b32 Add api test debug 2018-07-16 19:38:16 -04:00
Hypolite Petovan
4efcd47807 Put base test config in Yaml dataset 2018-07-16 19:38:16 -04:00
Hypolite Petovan
6b03ae92b8 Fix Memached config value format usage 2018-07-16 19:38:16 -04:00
Hypolite Petovan
8fe9a46ccf Set system.hostname in test bootstrap 2018-07-16 19:38:16 -04:00
Hypolite Petovan
59c38d1b73 Move meaningful message inside Exception thrown in Cache tests 2018-07-16 19:38:16 -04:00
Hypolite Petovan
9396b05659 Revert using Config class in dba 2018-07-16 19:38:16 -04:00
Hypolite Petovan
47992d06ce Restore system.url declaration in tests 2018-07-16 19:38:16 -04:00
Hypolite Petovan
12e34cc5fb Remove direct App instantiation from tests 2018-07-16 19:38:16 -04:00
Hypolite Petovan
9be9741562 Fix uses in include/dba 2018-07-16 19:38:16 -04:00
Hypolite Petovan
fc5d8e41a4 [tests] Prevent bin/worker.php from being called during tests 2018-07-16 19:38:16 -04:00
Hypolite Petovan
762a786611 Replace direct accesses to App->config by Config::get/set calls 2018-07-16 19:38:16 -04:00
Hypolite Petovan
d1f2d04803 Add missing default config keys
- Add config.admin_nickname
- Add config.info
- Add featurelock section
2018-07-16 19:38:15 -04:00
Hypolite Petovan
3255b2364b Fix dbesc as a constant notice message 2018-07-16 19:38:15 -04:00
Hypolite Petovan
e627054f68 Add optimize_max_tablesize to default config file 2018-07-16 19:38:15 -04:00
Hypolite Petovan
4d5b79a9d4 Move forbidden_nicknames default to config file 2018-07-16 19:38:15 -04:00
Hypolite Petovan
66ac16e101 Fix set_baseurl() notice messages in worker during tests 2018-07-16 19:38:15 -04:00
Hypolite Petovan
e98216b5bb Improve comparison in App->loadDatabase() 2018-07-16 19:38:15 -04:00
Hypolite Petovan
32418e8660 Fix test bootstrap namespace issue 2018-07-16 19:38:15 -04:00
Hypolite Petovan
1f1a3930b2 Instantiate the App in test bootstrap
- Remove wrong App instantiation in Lock test
2018-07-16 19:38:15 -04:00
Hypolite Petovan
3433c22116 Remove .htconfig.php reference from DatabaseTest 2018-07-16 19:38:15 -04:00
Hypolite Petovan
d8096a402c Update use of environment variables in loadDatabase 2018-07-16 19:38:15 -04:00
Hypolite Petovan
de7277ac69 Add load_config hook doc 2018-07-16 19:38:15 -04:00
Hypolite Petovan
4e7471232e Bump minimum PHP version to 5.6.1 2018-07-16 19:38:15 -04:00
Hypolite Petovan
5196ea22ff Fix Database connexion in tests 2018-07-16 19:38:15 -04:00
Hypolite Petovan
7f04a2ab8b Replace system.proc_windows config by PHP_OS test 2018-07-16 19:38:15 -04:00
Hypolite Petovan
2e40c39fa4 Add system.groupedit_image_limit config key to defaults.ini.php 2018-07-16 19:38:15 -04:00
Hypolite Petovan
cd9b864045 Rework App modes
- Replace App mode constants with capability-based flags
- Add App->isInstallMode()
- Add file config fallback in (P)Config abstraction
- Removed logger disabling code
2018-07-16 19:38:15 -04:00
Hypolite Petovan
d487c399dd Standards: Rename App methods
- Rename App->max_processes_reached to App->isMaxProcessesReached
- Rename App->maxload_reached to App->isMaxLoadReached
2018-07-16 19:38:14 -04:00
Hypolite Petovan
73b4e0552d Fix wrong urlpath determination 2018-07-16 19:38:14 -04:00
Hypolite Petovan
6d4615fabd Update config/defaults.ini.php
- Move sections around
- Update config.admin_email value type
2018-07-16 19:38:14 -04:00