Project

General

Profile

« Previous | Next » 

Revision 1666

Added by Dietmar over 12 years ago

! update of installer and upgradescript for Revision 1664/1665
+ add fields page_icon, menu_icon_0, menu_icon_1 to pages
+ add settings values dev_infos and page_icon_dir
! update languages files

View differences:

upgrade-script.php
63 63

  
64 64
			'[ADMIN]/preferences/details.php',
65 65
			'[ADMIN]/preferences/email.php',
66
			'[ADMIN]/preferences/password.php'
66
			'[ADMIN]/preferences/password.php',
67
			'[ADMIN]/pages/settings2.php'
67 68

  
68 69
		 );
69 70

  
......
475 476
foreach($cfg as $key=>$value) {
476 477
	db_add_key_value($key, $value);
477 478
}
479
/**********************************************************
480
 *  - Adding page_icon_dir to settings table
481
 */
482
echo "<br />Adding page_icon_dir to settings table<br />";
483
$cfg = array(
484
	'page_icon_dir' => '/templates/*/title_images',
485
);
486
foreach($cfg as $key=>$value) {
487
	db_add_key_value($key, $value);
488
}
489
/**********************************************************
490
 *  - Adding dev_infos to settings table
491
 */
492
echo "<br />Adding dev_infos to settings table<br />";
493
$cfg = array(
494
	'dev_infos' => 'true',
495
);
496
foreach($cfg as $key=>$value) {
497
	db_add_key_value($key, $value);
498
}
478 499

  
479 500
/**********************************************************
480 501
 *  - Add field "redirect_type" to table "mod_menu_link"
......
483 504
db_add_field('redirect_type', 'mod_menu_link', "INT NOT NULL DEFAULT '302' AFTER `target_page_id`");
484 505

  
485 506
/**********************************************************
507
 *  - Add field "page_icon" to table "pages"
508
 */
509
echo "<br />Adding field page_icon to pagestable<br />";
510
db_add_field('page_icon', 'pages', "TEXT NOT NULL DEFAULT '' AFTER `page_title`");
511

  
512
/**********************************************************
513
 *  - Add field "menu_icon_0" to table "pages"
514
 */
515
echo "<br />Adding field menu_icon_0 to pages table<br />";
516
db_add_field('menu_icon_0', 'pages', "TEXT NOT NULL DEFAULT '' AFTER `menu_title`");
517

  
518
/**********************************************************
519
 *  - Add field "menu_icon_1" to table "mod_menu_link"
520
 */
521
echo "<br />Adding field menu_icon_1 to pages table<br />";
522
db_add_field('menu_icon_1', 'pages', "TEXT NOT NULL DEFAULT '' AFTER `menu_icon_0`");
523

  
524
/**********************************************************
486 525
 *  - Update search no results database filed to create
487 526
 *  valid XHTML if search is empty
488 527
 */

Also available in: Unified diff