mirror of
https://github.com/moodle/moodle.git
synced 2025-08-02 23:59:41 +02:00
MDL-25235 fixed param type for OS paths
paths to executable are not PARAM_TEXT, we have to use PARAM_RAW there + whitespace fixes
This commit is contained in:
parent
1d67258eb9
commit
43206af618
1 changed files with 6 additions and 6 deletions
|
@ -34,15 +34,15 @@ if ($ADMIN->fulltree) {
|
|||
|
||||
//pdf_to_text_cmd
|
||||
$settings->add(new admin_setting_configtext('block_search_pdf_to_text_cmd', get_string('configpdftotextcmd', 'block_search'),
|
||||
get_string('pdftotextcmd', 'block_search'), $default_pdf_to_text_cmd, PARAM_TEXT, 60));
|
||||
get_string('pdftotextcmd', 'block_search'), $default_pdf_to_text_cmd, PARAM_RAW, 60));
|
||||
|
||||
//word_to_text_cmd
|
||||
$settings->add(new admin_setting_configtext('block_search_word_to_text_cmd', get_string('configwordtotextcmd', 'block_search'),
|
||||
get_string('wordtotextcmd', 'block_search'), $default_word_to_text_cmd, PARAM_TEXT, 60));
|
||||
get_string('wordtotextcmd', 'block_search'), $default_word_to_text_cmd, PARAM_RAW, 60));
|
||||
|
||||
//word_to_text_env
|
||||
$settings->add(new admin_setting_configtext('block_search_word_to_text_env', get_string('configwordtotextenv', 'block_search'),
|
||||
get_string('wordtotextenv', 'block_search'), $default_word_to_text_env, PARAM_PATH, 60));
|
||||
get_string('wordtotextenv', 'block_search'), $default_word_to_text_env, PARAM_RAW, 60));
|
||||
|
||||
|
||||
// modules activations
|
||||
|
@ -67,12 +67,12 @@ if ($ADMIN->fulltree) {
|
|||
$propname = 'block_search_'.$type.'_to_text_cmd';
|
||||
$settings->add(new admin_setting_configtext($propname, get_string('configtypetotxtcmd', 'block_search'),
|
||||
get_string('cmdtoconverttotextfor', 'block_search', $type), '', PARAM_PATH, 60));
|
||||
|
||||
|
||||
//word_to_text_env
|
||||
$propname = 'block_search_'.$type.'_to_text_env';
|
||||
$settings->add(new admin_setting_configtext($propname, get_string('configtypetotxtenv', 'block_search'),
|
||||
get_string('envforcmdtotextfor', 'block_search', $type), '', PARAM_PATH, 60));
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -93,7 +93,7 @@ if ($ADMIN->fulltree) {
|
|||
$found_searchable_modules = 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (!$found_searchable_modules) {
|
||||
//header
|
||||
$propname = 'block_search_nosearchablemodules';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue