Project

General

Profile

« Previous | Next » 

Revision 831

Added by doc over 16 years ago

Fixed possible clashes with intro page feature and WB core file /pages/index.php

View differences:

add.php
84 84
// Work-out what the link and page filename should be
85 85
if($parent == '0') {
86 86
	$link = '/'.page_filename($title);
87
	$filename = WB_PATH.PAGES_DIRECTORY.'/'.page_filename($title).PAGE_EXTENSION;
87
	// rename menu titles: index && intro to prevent clashes with intro page feature and WB core file /pages/index.php
88
	if($link == '/index' || $link == '/intro') {
89
		$link .= '_0';
90
		$filename = WB_PATH .PAGES_DIRECTORY .'/' .page_filename($title) .'_0' .PAGE_EXTENSION;
91
	} else {
92
		$filename = WB_PATH.PAGES_DIRECTORY.'/'.page_filename($title).PAGE_EXTENSION;
93
	}
88 94
} else {
89 95
	$parent_section = '';
90 96
	$parent_titles = array_reverse(get_parent_titles($parent));

Also available in: Unified diff