** Changed in: elementaryweb
Status: New => Fix Released
--
You received this bug notification because you are a member of
Elementary Website Team, which is subscribed to elementaryweb.
https://bugs.launchpad.net/bugs/769798
Title:
PHP code appearing in Wiki sidebar
Status in The official elementary website:
Fix Released
Bug description:
The following PHP code is appearing in the Wiki sidebar:
0 || ($emulate_book_block && in_array($nid, $current_lineage)))) { $struct = '
'; foreach ($children[$nid] as $key => $node) { if ($tree =
book_struct_recurse($node->nid, $levels_deep - 1, $children, $current_lineage,
is_numeric($emulate_book_block) ? ($emulate_book_block - 1 ?
$emulate_book_block - 1 : false) : $emulate_book_block )) { // a submenu will
be printed below this item $struct .= '
'; $struct .= l($node->title, 'node/'. $node->nid); $struct .= $tree; $struct
.= '
'; } else { // no submenu will be printed below this item, but let's see if
we // should call this
"collapsed" or just a "leaf" // yes, it's complex logic $class =
($emulate_book_block === true || (($emulate_book_block - 1) &&
$emulate_book_block > $levels_deep)) && $children[$node->nid] ? 'collapsed' :
'leaf'; $struct .= '
' . l($node->title, 'node/'. $node->nid) . '
'; } } $struct .= '
'; return $struct; } } } $book_top_page = $nid; $tree =
menu_tree_all_data(book_menu_name($book_top_page)); print
menu_tree_output($tree); ?>
_______________________________________________
Mailing list: https://launchpad.net/~elementaryweb
Post to : [email protected]
Unsubscribe : https://launchpad.net/~elementaryweb
More help : https://help.launchpad.net/ListHelp