aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/PluginManager.php
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.net>2016-08-13 14:48:51 +0200
committerGitHub <noreply@github.com>2016-08-13 14:48:51 +0200
commit8758bb0ac8cb68d32122009dbcb977d2f0fad2b0 (patch)
tree586fe98bd463424e152232cb66bee0465e7c74b5 /application/PluginManager.php
parenteec3666ba60b20f1db054102ccbd618d3bb79594 (diff)
parent876533e86801246bef893e7124ce044ebf33239f (diff)
downloadShaarli-8758bb0ac8cb68d32122009dbcb977d2f0fad2b0.tar.gz
Shaarli-8758bb0ac8cb68d32122009dbcb977d2f0fad2b0.tar.zst
Shaarli-8758bb0ac8cb68d32122009dbcb977d2f0fad2b0.zip
Merge pull request #619 from ArthurHoaro/plugins/param-desc
Add a description to plugin parameters
Diffstat (limited to 'application/PluginManager.php')
-rw-r--r--application/PluginManager.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/application/PluginManager.php b/application/PluginManager.php
index 1afc8d5c..1e132a7f 100644
--- a/application/PluginManager.php
+++ b/application/PluginManager.php
@@ -185,7 +185,11 @@ class PluginManager
185 continue; 185 continue;
186 } 186 }
187 187
188 $metaData[$plugin]['parameters'][$param] = ''; 188 $metaData[$plugin]['parameters'][$param]['value'] = '';
189 // Optional parameter description in parameter.PARAM_NAME=
190 if (isset($metaData[$plugin]['parameter.'. $param])) {
191 $metaData[$plugin]['parameters'][$param]['desc'] = $metaData[$plugin]['parameter.'. $param];
192 }
189 } 193 }
190 } 194 }
191 195