aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/PluginManager.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2016-08-02 11:02:20 +0200
committerArthurHoaro <arthur@hoa.ro>2016-08-02 11:12:01 +0200
commit15170b516429341ae8e1a9ad2111be5ef90bf6aa (patch)
treea6fcbefb1c26c5e6059d0158530f8a6e4599f399 /application/PluginManager.php
parent559315ba0a89e306bc46d0a540f1536193860580 (diff)
downloadShaarli-15170b516429341ae8e1a9ad2111be5ef90bf6aa.tar.gz
Shaarli-15170b516429341ae8e1a9ad2111be5ef90bf6aa.tar.zst
Shaarli-15170b516429341ae8e1a9ad2111be5ef90bf6aa.zip
Parse plugin parameters description with the PluginManager
Plugin parameter can contain a description in their meta file under the key: parameter.<param_name>="<description>"
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 dca7e63e..07bc1da9 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