MDL-25235 fixed param type for OS paths
authorPetr Skoda <skodak@moodle.org>
Tue, 16 Nov 2010 10:27:00 +0000 (10:27 +0000)
committerPetr Skoda <skodak@moodle.org>
Tue, 16 Nov 2010 10:27:00 +0000 (10:27 +0000)
paths to executable are not PARAM_TEXT, we have to use PARAM_RAW there + whitespace fixes

blocks/search/settings.php

index 01381fc..44fee6c 100644 (file)
@@ -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';