2013-02-12 Sergio Martin <sergio.martin@artica.es>
* extensions/plugin_registration.php: Added a extra Parameter in the conversion of plugins version 1 to 2 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7627 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
69da437d2b
commit
c873136d4c
|
@ -1,3 +1,8 @@
|
||||||
|
2013-02-12 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
|
* extensions/plugin_registration.php: Added a extra Parameter in the
|
||||||
|
conversion of plugins version 1 to 2
|
||||||
|
|
||||||
2013-02-12 Sergio Martin <sergio.martin@artica.es>
|
2013-02-12 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
* extensions/plugin_registration.php: Recommit the last fix of
|
* extensions/plugin_registration.php: Recommit the last fix of
|
||||||
|
|
|
@ -196,6 +196,7 @@ function pluginreg_convert_plugin_1_to_2($plugin) {
|
||||||
$port_desc = 'Port';
|
$port_desc = 'Port';
|
||||||
$user_desc = 'Username';
|
$user_desc = 'Username';
|
||||||
$pass_desc = 'Password';
|
$pass_desc = 'Password';
|
||||||
|
$param_desc = 'Parameters';
|
||||||
|
|
||||||
$parameters = '';
|
$parameters = '';
|
||||||
$n_field = 1;
|
$n_field = 1;
|
||||||
|
@ -229,8 +230,14 @@ function pluginreg_convert_plugin_1_to_2($plugin) {
|
||||||
$parameters.= $plugin["pass_opt"]." $macro ";
|
$parameters.= $plugin["pass_opt"]." $macro ";
|
||||||
unset($plugin["pass_opt"]);
|
unset($plugin["pass_opt"]);
|
||||||
$plugin['macro_desc'.$macro] = $pass_desc;
|
$plugin['macro_desc'.$macro] = $pass_desc;
|
||||||
|
$n_field ++;
|
||||||
|
$macro = "_field".$n_field."_";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Always add a parameter to
|
||||||
|
$parameters.= " $macro ";
|
||||||
|
$plugin['macro_desc'.$macro] = $param_desc;
|
||||||
|
|
||||||
$plugin["execution_postcommand"] .= " $parameters";
|
$plugin["execution_postcommand"] .= " $parameters";
|
||||||
|
|
||||||
return $plugin;
|
return $plugin;
|
||||||
|
|
Loading…
Reference in New Issue