Permalink
Browse files

Merge branch 'MDL-27073_multilang-custommenu_20_STABLE' of git://gith…

…ub.com/mudrd8mz/moodle into MOODLE_20_STABLE
  • Loading branch information...
2 parents 8445c47 + 6a87878 commit 528cde2db247777c7da2ee54ea2064a6d9a12914 @stronk7 stronk7 committed Jun 22, 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 528cde2

Please sign in to comment.