Project

General

Profile

« Previous | Next » 

Revision 1767

Added by Dietmar about 12 years ago

! change page_extended to extended settings under page language

View differences:

index.php
28 28
$cfg = array(
29 29
	'website_signature' => defined('WEBSITE_SIGNATURE') ? WEBSITE_SIGNATURE : '',
30 30
	'confirmed_registration' => (defined('CONFIRMED_REGISTRATION') ? CONFIRMED_REGISTRATION : '0'),
31
	'modules_upgrade_list' => (defined('MODULES_UPGRADE_LIST') ? MODULES_UPGRADE_LIST : ''),
31 32
	);
32 33
db_update_key_value( 'settings', $cfg );
33 34

  
......
40 41

  
41 42
// Setup template object, parse vars to it, then parse it
42 43
// Create new template object
43
$template = new Template(dirname($admin->correct_theme_source('settings.htt')));
44
$template = new Template(dirname($admin->correct_theme_source('settings.htt')),'keep');
44 45
// $template->debug = true;
45 46
$template->set_file('page',        'settings.htt');
46 47
$template->set_block('page',       'main_block', 'main');
......
70 71
$template->set_block('main_block', 'show_search_block',           'show_search');
71 72
$template->set_block('main_block', 'show_redirect_timer_block',   'show_redirect_timer');
72 73
/*-- insert all needed vars from language files ----------------------------------------*/
73
	$template->set_var($mLang->getLangArray());
74
$template->set_var($mLang->getLangArray());
74 75

  
75 76
// Query current settings in the db, then loop through them and print them
76 77
$query = "SELECT * FROM ".TABLE_PREFIX."settings";
......
783 784

  
784 785
	$template->set_var(array(
785 786
						'PAGES_DIRECTORY' => PAGES_DIRECTORY,
787
						'MODULES_DIRECTORY' => MODULES_UPGRADE_LIST,
786 788
						'PAGE_ICON_DIR'   => PAGE_ICON_DIR,
787 789
						'MEDIA_DIRECTORY' => MEDIA_DIRECTORY,
788 790
						'PAGE_EXTENSION' => PAGE_EXTENSION,
......
951 953
// Parse template objects output
952 954
$template->parse('main', 'main_block', false);
953 955
$template->pparse('output', 'page');
954

  
956
unset($template);
955 957
$admin->print_footer();

Also available in: Unified diff