Permalink
Browse files

MDL-27073 Support multi-language content in custom menu

  • Loading branch information...
mudrd8mz committed Jun 17, 2011
1 parent cc50a2f commit 6a8787828ea76fd05449b450b53a966d2cf56fd3
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 6a87878

Please sign in to comment.