include_once($path_to_root . "/includes/session.inc");
include_once($path_to_root."/includes/packages.inc");
-if ($use_popup_windows) {
+if ($SysPrefs->use_popup_windows) {
$js = get_js_open_window(900, 500);
}
page(_($help_context = "Install/Activate extensions"));
'active' => false
);
- if (file_exists($path_to_root.'/modules/'.$id.'/hooks.php')) {
- include_once($path_to_root.'/modules/'.$id.'/hooks.php');
+ if (file_exists($path_to_root.'/modules/'.clean_file_name($id).'/hooks.php')) {
+ include_once($path_to_root.'/modules/'.clean_file_name($id).'/hooks.php');
}
$hooks_class = 'hooks_'.$id;
if (class_exists($hooks_class, false)) {
end_form();
end_page();
-?>
\ No newline at end of file