From 684e662a58b02bde225e44d3677987b6fc3adf0b Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Wed, 18 May 2016 21:48:24 +0200 Subject: Replace $GLOBALS configuration with the configuration manager in the whole code base --- tests/utils/config/configPhp.php | 14 ++++++++++++++ tests/utils/config/configUpdater.php | 15 +++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 tests/utils/config/configPhp.php create mode 100644 tests/utils/config/configUpdater.php (limited to 'tests/utils/config') diff --git a/tests/utils/config/configPhp.php b/tests/utils/config/configPhp.php new file mode 100644 index 00000000..0e034175 --- /dev/null +++ b/tests/utils/config/configPhp.php @@ -0,0 +1,14 @@ + Date: Sun, 29 May 2016 12:32:14 +0200 Subject: Adds ConfigJson which handle the configuration in JSON format. Also use the Updater to make the transition --- tests/utils/config/configInvalid.json.php | 4 ++++ tests/utils/config/configJson.json.php | 19 +++++++++++++++++++ tests/utils/config/configUpdateDone.json.php | 4 ++++ 3 files changed, 27 insertions(+) create mode 100644 tests/utils/config/configInvalid.json.php create mode 100644 tests/utils/config/configJson.json.php create mode 100644 tests/utils/config/configUpdateDone.json.php (limited to 'tests/utils/config') diff --git a/tests/utils/config/configInvalid.json.php b/tests/utils/config/configInvalid.json.php new file mode 100644 index 00000000..c53e471d --- /dev/null +++ b/tests/utils/config/configInvalid.json.php @@ -0,0 +1,4 @@ + Date: Sun, 29 May 2016 16:10:32 +0200 Subject: Rename configuration keys and fix GLOBALS in templates --- tests/utils/config/configJson.json.php | 33 ++++++++++++++++++---------- tests/utils/config/configUpdateDone.json.php | 4 ---- tests/utils/config/configUpdater.php | 15 ------------- 3 files changed, 22 insertions(+), 30 deletions(-) delete mode 100644 tests/utils/config/configUpdateDone.json.php delete mode 100644 tests/utils/config/configUpdater.php (limited to 'tests/utils/config') diff --git a/tests/utils/config/configJson.json.php b/tests/utils/config/configJson.json.php index 71b59edd..6a841f8a 100644 --- a/tests/utils/config/configJson.json.php +++ b/tests/utils/config/configJson.json.php @@ -1,17 +1,28 @@ Date: Sat, 11 Jun 2016 09:08:02 +0200 Subject: Rename configuration key for better sections --- tests/utils/config/configJson.json.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'tests/utils/config') diff --git a/tests/utils/config/configJson.json.php b/tests/utils/config/configJson.json.php index 6a841f8a..c54882c3 100644 --- a/tests/utils/config/configJson.json.php +++ b/tests/utils/config/configJson.json.php @@ -10,17 +10,19 @@ }, "general": { "timezone":"Europe\/Paris", - "default_private_linksheader_link":true, "title": "Shaarli", "header_link": "?" }, - "extras": { - "redirector":"lala" + "privacy": { + "default_private_links":true + }, + "redirector": { + "url":"lala" }, "config": { "foo": "bar" }, - "path": { + "resource": { "datastore": "tests\/utils\/config\/datastore.php", "data_dir": "tests\/utils\/config" }, -- cgit v1.2.3 From 5ff23f02b80ec6ddee28dee869171ee8e3656b7c Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Mon, 20 Jun 2016 18:30:37 +0200 Subject: Add closing PHP tags to JSON config files --- tests/utils/config/configInvalid.json.php | 1 + tests/utils/config/configJson.json.php | 2 ++ 2 files changed, 3 insertions(+) (limited to 'tests/utils/config') diff --git a/tests/utils/config/configInvalid.json.php b/tests/utils/config/configInvalid.json.php index c53e471d..167f2168 100644 --- a/tests/utils/config/configInvalid.json.php +++ b/tests/utils/config/configInvalid.json.php @@ -2,3 +2,4 @@ { bad: bad, } +*/ ?> \ No newline at end of file diff --git a/tests/utils/config/configJson.json.php b/tests/utils/config/configJson.json.php index c54882c3..06a302e8 100644 --- a/tests/utils/config/configJson.json.php +++ b/tests/utils/config/configJson.json.php @@ -30,3 +30,5 @@ "WALLABAG_VERSION": 1 } } +*/ ?> + -- cgit v1.2.3