Permalink
Browse files

MDL-27073 Support multi-language content in custom menu

  • Loading branch information...
1 parent d037c6b commit 87e0230d0a0f5993111e81e01a9f62713595136a @mudrd8mz mudrd8mz committed Jun 17, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/outputcomponents.php
View
@@ -2370,6 +2370,10 @@ public function override_children(array $children) {
* @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;

0 comments on commit 87e0230

Please sign in to comment.