Project

General

Profile

« Previous | Next » 

Revision 928

Added by doc almost 16 years ago

Added reload option to Add-on section and removed Admin tool reload

View differences:

index.php
54 54
if($admin->get_permission('languages_view') != true) {
55 55
	$template->set_var('DISPLAY_LIST', 'hide');
56 56
}
57
if($admin->get_permission('admintools') != true) {
58
	$template->set_var('DISPLAY_RELOAD', 'hide');
59
}
57 60

  
58 61
// Insert language headings
59 62
$template->set_var(array(
......
64 67
						);
65 68
// Insert language text and messages
66 69
$template->set_var(array(
67
								'TEXT_INSTALL' => $TEXT['INSTALL'],
68
								'TEXT_UNINSTALL' => $TEXT['UNINSTALL'],
69
								'TEXT_VIEW_DETAILS' => $TEXT['VIEW_DETAILS'],
70
								'TEXT_PLEASE_SELECT' => $TEXT['PLEASE_SELECT']
71
								)
72
						);
70
	'URL_MODULES' => $admin->get_permission('modules') ? 
71
		'<a href="' . ADMIN_URL . '/modules/index.php">' . $MENU['MODULES'] . '</a>' : '',
72
	'URL_TEMPLATES' => $admin->get_permission('templates') ? 
73
		'<a href="' . ADMIN_URL . '/templates/index.php">' . $MENU['TEMPLATES'] . '</a>' : '',
74
	'TEXT_INSTALL' => $TEXT['INSTALL'],
75
	'TEXT_UNINSTALL' => $TEXT['UNINSTALL'],
76
	'TEXT_VIEW_DETAILS' => $TEXT['VIEW_DETAILS'],
77
	'TEXT_PLEASE_SELECT' => $TEXT['PLEASE_SELECT'],
78
	'TXT_ADMIN_SETTINGS' => $TEXT['ADMIN'] . '-' . $TEXT['SETTINGS'],
79
	'TEXT_RELOAD_ADDON' => $MESSAGE['ADDON']['RELOAD'],
80
	'TEXT_RELOAD' => $TEXT['RELOAD']
81
	)
82
);
73 83

  
74 84
// Parse template object
75 85
$template->parse('main', 'main_block', false);

Also available in: Unified diff