Project

General

Profile

« Previous | Next » 

Revision 1457

Added by Dietmar over 13 years ago

Preparing 2.8.2 stable, last tests

View differences:

index.php
11 11
 * @platform        WebsiteBaker 2.8.x
12 12
 * @requirements    PHP 5.2.2 and higher and higher
13 13
 * @version         $Id$
14
 * @filesource		$HeadURL:  $
15
 * @lastmodified    $Date:  $
14
 * @filesource		$HeadURL$
15
 * @lastmodified    $Date$
16 16
 *
17 17
 */
18 18

  
......
344 344
	</tr>
345 345
	</table>
346 346
	<?php
347
    // Work-out if we should check for existing page_code
348
    $field_sql = $database->query("DESCRIBE ".TABLE_PREFIX."pages page_code");
349
    $field_set = $field_sql->numRows();
347
	// Work-out if we should check for existing page_code
348
	$field_set = $database->field_exists(TABLE_PREFIX.'pages', 'page_code');
349

  
350 350
    $par = array();
351 351
	$par['num_subs'] = 1;
352 352
	$editable_pages = make_list(0, 0);
......
498 498
			}
499 499
			// Title -'s prefix
500 500
			$title_prefix = '';
501
			for($i = 1; $i <= $page['level']; $i++) { $title_prefix .= ' - '; }
501
			for($i = 1; $i <= $page['level']; $i++) { $title_prefix .= ' - - &nbsp;'; }
502 502
				$template->set_var(array(
503 503
										'ID' => $page['page_id'],
504 504
										'TITLE' => ($title_prefix.$page['menu_title']),
......
518 518
$template->set_block('main_block', 'page_list_block2', 'page_list2');
519 519
if($admin->get_permission('pages_add_l0') == true) {
520 520
	$template->set_var(array(
521
									'ID' => '0',
522
									'TITLE' => $TEXT['NONE'],
523
									'SELECTED' => ' selected="selected"',
524
									'DISABLED' => ''
525
									)
526
							);
521
						'ID' => '0',
522
						'TITLE' => $TEXT['NONE'],
523
						'SELECTED' => ' selected="selected"',
524
						'DISABLED' => ''
525
					)
526
				);
527 527
	$template->parse('page_list2', 'page_list_block2', true);
528 528
}
529 529
parent_list(0);
530 530

  

Also available in: Unified diff