Revision | e78eeec4638981b42863fd315fee3965a0b45fbe (tree) |
---|---|
Time | 2007-07-23 23:26:06 |
Author | henoheno <henoheno> |
Commiter | henoheno |
BugTrack2/262: Convert MenuBar before deciding $pkwk_dtd (patched by Ilfa)
@@ -1,6 +1,6 @@ | ||
1 | 1 | <?php |
2 | 2 | // PukiWiki - Yet another WikiWikiWeb clone. |
3 | -// $Id: pukiwiki.skin.php,v 1.54 2007/06/24 14:01:21 henoheno Exp $ | |
3 | +// $Id: pukiwiki.skin.php,v 1.55 2007/07/23 14:26:06 henoheno Exp $ | |
4 | 4 | // Copyright (C) |
5 | 5 | // 2002-2007 PukiWiki Developers Team |
6 | 6 | // 2001-2002 Originally written by yu-ji |
@@ -50,6 +50,9 @@ switch(UI_LANG){ | ||
50 | 50 | case 'ja': $css_charset = 'Shift_JIS'; break; |
51 | 51 | } |
52 | 52 | |
53 | +// MenuBar | |
54 | +$menu = arg_check('read') && exist_plugin_convert('menu') ? do_plugin_convert('menu') : FALSE; | |
55 | + | |
53 | 56 | // ------------------------------------------------------------ |
54 | 57 | // Output |
55 | 58 |
@@ -156,11 +159,11 @@ function _navigator($key, $value = '', $javascript = ''){ | ||
156 | 159 | |
157 | 160 | <?php echo $hr ?> |
158 | 161 | |
159 | -<?php if (arg_check('read') && exist_plugin_convert('menu')) { ?> | |
162 | +<?php if ($menu) { ?> | |
160 | 163 | <table border="0" style="width:100%"> |
161 | 164 | <tr> |
162 | 165 | <td class="menubar"> |
163 | - <div id="menubar"><?php echo do_plugin_convert('menu') ?></div> | |
166 | + <div id="menubar"><?php echo $menu ?></div> | |
164 | 167 | </td> |
165 | 168 | <td valign="top"> |
166 | 169 | <div id="body"><?php echo $body ?></div> |