OSDN Git Service

Added define MENU_SUBMENUBAR
authorhenoheno <henoheno>
Fri, 6 Aug 2004 13:11:27 +0000 (22:11 +0900)
committerhenoheno <henoheno>
Fri, 6 Aug 2004 13:11:27 +0000 (22:11 +0900)
plugin/menu.inc.php

index c53b140..dfc5c38 100644 (file)
@@ -2,12 +2,15 @@
 /////////////////////////////////////////////////
 // PukiWiki - Yet another WikiWikiWeb clone.
 //
-// $Id: menu.inc.php,v 1.4 2004/08/06 13:10:39 henoheno Exp $
+// $Id: menu.inc.php,v 1.5 2004/08/06 13:11:27 henoheno Exp $
 //
 
 // ¥µ¥Ö¥á¥Ë¥å¡¼¤ò»ÈÍѤ¹¤ë
 define('MENU_ENABLE_SUBMENU', FALSE);
 
+// ¥µ¥Ö¥á¥Ë¥å¡¼¤Î̾¾Î
+define('MENU_SUBMENUBAR', 'MenuBar');
+
 function plugin_menu_convert()
 {
        global $vars, $menubar;
@@ -24,7 +27,7 @@ function plugin_menu_convert()
        if (MENU_ENABLE_SUBMENU) {
                $path = explode('/', strip_bracket($vars['page']));
                while(count($path)) {
-                       $_page = join('/', $path) . '/MenuBar';
+                       $_page = join('/', $path) . '/' . MENU_SUBMENUBAR;
                        if (is_page($_page)) {
                                $page = $_page;
                                break;