Project

General

Profile

« Previous | Next » 

Revision 1696

Added by Dietmar about 12 years ago

move extra handling of menu links in index.php to the view.php of module menu links {Tks to NorHei)

View differences:

upgrade-script.php
473 473
	}
474 474
	/**********************************************************
475 475
 *  - Add field "redirect_type" to table "mod_menu_link"
476
 *  has to be moved later to upgrade.php in modul menu_link, because modul can be removed
476 477
 */
477 478
	$table_name = TABLE_PREFIX.'mod_menu_link';
478 479
	$field_name = 'redirect_type';
479
	$description = "INT NOT NULL DEFAULT '302' AFTER `target_page_id`";
480
	$description = "INT NOT NULL DEFAULT '301' AFTER `target_page_id`";
480 481
	if(!$database->field_exists($table_name,$field_name)) {
481 482
		echo "<br />Adding field redirect_type to mod_menu_link table";
482 483
		echo ($database->field_add($table_name, $field_name, $description) ? " $OK<br />" : " $FAIL!<br />");
483 484

  

Also available in: Unified diff