[sork] diffs update for menu
Tim Gorter
email@teletechnics.com
Fri, 30 Aug 2002 12:53:34 +0200
Hi,
below are diff update for changing the call on the menu in the forwards
module to make it same as other modules, and allow for site specific items
to be shown on menu as well.
Index: main.php
===================================================================
RCS file: /repository/forwards/main.php,v
retrieving revision 1.12
diff -r1.12 main.php
86a87
> include_once FORWARDS_BASE . '/menu.php';
88d88
<
Index: menu.php
===================================================================
RCS file: /repository/forwards/menu.php,v
retrieving revision 1.3
diff -r1.3 menu.php
12,13d11
< define('FORWARDS_BASE', dirname(__FILE__));
< include_once FORWARDS_BASE . '/lib/base.php';
16,17d13
< if ($prefs->getValue("frames_mode") && ! preg_match("/frames_menu\.php$/",
$PHP_SELF)) return;
<
22,25c18,19
< if (isset($_menu) && is_array($_menu)) {
< foreach ($_menu as $item) {
< $additional_items .= Menu::customItem($item);
< }
---
> foreach ($_menu as $item) {
> $additional_items .= Menu::customItem($item);
Index: main.inc
===================================================================
RCS file: /repository/forwards/templates/main/main.inc,v
retrieving revision 1.3
diff -r1.3 main.inc
4,5d3
< include_once FORWARDS_TEMPLATES . '/menu/menu.inc';
<