From 87e0230d0a0f5993111e81e01a9f62713595136a Mon Sep 17 00:00:00 2001 From: David Mudrak Date: Fri, 17 Jun 2011 17:05:10 +0200 Subject: [PATCH] MDL-27073 Support multi-language content in custom menu --- lib/outputcomponents.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/outputcomponents.php b/lib/outputcomponents.php index 7cea429543a..79f01e0db2c 100644 --- a/lib/outputcomponents.php +++ b/lib/outputcomponents.php @@ -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; -- 2.11.4.GIT