Merge branch 'MDL-27073_multilang-custommenu' of git://github.com/mudrd8mz/moodle

This commit is contained in:
Eloy Lafuente (stronk7)
2011-06-22 14:11:18 +02:00
+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;