Revisão | 9ba451f50698b5d3b23cfcb301c7637cb9127036 (tree) |
---|---|
Hora | 2017-08-17 23:57:34 |
Autor | umorigu <umorigu@gmai...> |
Commiter | umorigu |
BugTrack/2126 Stop removing ul elements attrs in Menu
@@ -1,14 +1,15 @@ | ||
1 | 1 | <?php |
2 | -///////////////////////////////////////////////// | |
3 | 2 | // PukiWiki - Yet another WikiWikiWeb clone. |
3 | +// menu.inc.php | |
4 | +// Copyright 2003-2017 PukiWiki Development Team | |
5 | +// License: GPL v2 or (at your option) any later version | |
4 | 6 | // |
5 | -// $Id: menu.inc.php,v 1.10 2011/01/25 15:01:01 henoheno Exp $ | |
6 | -// | |
7 | +// Menu plugin | |
7 | 8 | |
8 | -// サブメニューを使用する | |
9 | +// Use Submenu if true | |
9 | 10 | define('MENU_ENABLE_SUBMENU', FALSE); |
10 | 11 | |
11 | -// サブメニューの名称 | |
12 | +// Name of Submenu | |
12 | 13 | define('MENU_SUBMENUBAR', 'MenuBar'); |
13 | 14 | |
14 | 15 | function plugin_menu_convert() |
@@ -52,9 +53,7 @@ function plugin_menu_convert() | ||
52 | 53 | } else { |
53 | 54 | // Cut fixed anchors |
54 | 55 | $menutext = preg_replace('/^(\*{1,3}.*)\[#[A-Za-z][\w-]+\](.*)$/m', '$1$2', get_source($page)); |
55 | - | |
56 | - return preg_replace('/<ul[^>]*>/', '<ul>', convert_html($menutext)); | |
56 | + return convert_html($menutext); | |
57 | 57 | } |
58 | 58 | } |
59 | 59 | } |
60 | -?> |