]> git.mjollnir.org Git - moodle.git/commitdiff
PARAM_MULTILANG is now alias of PARAM_TEXT; merged from MOODLE_17_STABLE
authorskodak <skodak>
Mon, 16 Oct 2006 07:46:35 +0000 (07:46 +0000)
committerskodak <skodak>
Mon, 16 Oct 2006 07:46:35 +0000 (07:46 +0000)
lib/moodlelib.php

index 00072d7a8ebecaaaabbdcb241ac427c635815df6..283483ebbc4a4b6d4fbc622791d76b94a508b3c0 100644 (file)
@@ -138,10 +138,15 @@ define('PARAM_FORMAT',   0x0004);
 define('PARAM_NOTAGS',   0x0008);
 
  /**
- * PARAM_MULTILANG - general plain text compatible with multilang filter, no other html tags.
+ * PARAM_MULTILANG - alias of PARAM_TEXT.
  */
 define('PARAM_MULTILANG',  0x0009);
 
+ /**
+ * PARAM_TEXT - general plain text compatible with multilang filter, no other html tags.
+ */
+define('PARAM_TEXT',  0x0009);
+
 /**
  * PARAM_FILE - safe file name, all dangerous chars are stripped, protects against XSS, SQL injections and directory traversals
  */
@@ -384,7 +389,7 @@ function clean_param($param, $type) {
         case PARAM_NOTAGS:       // Strip all tags
             return strip_tags($param);
 
-        case PARAM_MULTILANG:    // leave only tags needed for multilang
+        case PARAM_TEXT:    // leave only tags needed for multilang
             return clean_param(strip_tags($param, '<lang><span>'), PARAM_CLEAN);
 
         case PARAM_SAFEDIR:      // Remove everything not a-zA-Z0-9_-