MDL-27073 Support multi-language content in custom menu

This commit is contained in:
David Mudrak
2011-06-17 17:05:10 +02:00
parent cc50a2fbc4
commit 6a8787828e
+4
View File
@@ -2370,6 +2370,10 @@ class custom_menu extends custom_menu_item {
* @return array
*/
public static function convert_text_to_menu_nodes($text) {
$text = format_text($text, FORMAT_MOODLE, array(
'para' => false,
'newlines' => false,
'context' => get_system_context()));
$lines = explode("\n", $text);
$children = array();
$lastchild = null;