Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-27073 Support multi-language content in custom menu

  • Loading branch information...
commit 87e0230d0a0f5993111e81e01a9f62713595136a 1 parent d037c6b
@mudrd8mz mudrd8mz authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/outputcomponents.php
View
4 lib/outputcomponents.php
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.