aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/plugins
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-09-12 21:41:24 +0200
committerGitHub <noreply@github.com>2020-09-12 21:41:24 +0200
commit4af591ff3c5db4dea5b6c437527f6f9b12917570 (patch)
tree924ab153d4ae4609e0c073775874f9f11d84d0dc /tests/plugins
parente809908f9e593b2cec11f72849caa1dae6394451 (diff)
parent4ff703e3691e6cb398e8d208c1f54ed61315e0e8 (diff)
downloadShaarli-4af591ff3c5db4dea5b6c437527f6f9b12917570.tar.gz
Shaarli-4af591ff3c5db4dea5b6c437527f6f9b12917570.tar.zst
Shaarli-4af591ff3c5db4dea5b6c437527f6f9b12917570.zip
Merge pull request #1551 from ArthurHoaro/fix/plugin-save-metadata
Plugins: do not save metadata along plugin parameters
Diffstat (limited to 'tests/plugins')
-rw-r--r--tests/plugins/test/test.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/plugins/test/test.php b/tests/plugins/test/test.php
index ae5032dd..03be4f4e 100644
--- a/tests/plugins/test/test.php
+++ b/tests/plugins/test/test.php
@@ -13,6 +13,9 @@ function hook_test_random($data)
13 $data[1] = 'page test'; 13 $data[1] = 'page test';
14 } elseif (isset($data['_LOGGEDIN_']) && $data['_LOGGEDIN_'] === true) { 14 } elseif (isset($data['_LOGGEDIN_']) && $data['_LOGGEDIN_'] === true) {
15 $data[1] = 'loggedin'; 15 $data[1] = 'loggedin';
16 } elseif (array_key_exists('_LOGGEDIN_', $data)) {
17 $data[1] = 'loggedin';
18 $data[2] = $data['_LOGGEDIN_'];
16 } else { 19 } else {
17 $data[1] = $data[0]; 20 $data[1] = $data[0];
18 } 21 }