Temporary fixes for php encoding library bugs ending with segfault.
[fa-stable.git] / admin / inst_theme.php
index 0d1987d5f8358c3f5d847fbdef459d138e882511..7c15dd53297c3a881d960165d50cc88c6d5bbe67 100644 (file)
 $page_security = 'SA_CREATEMODULES';
 $path_to_root="..";
 include_once($path_to_root . "/includes/session.inc");
+
 include_once($path_to_root."/includes/packages.inc");
+include_once($path_to_root . "/admin/db/maintenance_db.inc");
+include_once($path_to_root . "/includes/ui.inc");
 
 if ($SysPrefs->use_popup_windows) {
        $js = get_js_open_window(900, 500);
 }
 page(_($help_context = "Install Themes"), false, false, '', $js);
 
-include_once($path_to_root . "/includes/date_functions.inc");
-include_once($path_to_root . "/admin/db/company_db.inc");
-include_once($path_to_root . "/admin/db/maintenance_db.inc");
-include_once($path_to_root . "/includes/ui.inc");
-
 //---------------------------------------------------------------------------------------------
 
 if (($id = find_submit('Delete', false)) && isset($installed_extensions[$id])
@@ -73,7 +71,6 @@ start_form(true);
 
                        alt_table_row_color($k);
 
-//             label_cell(is_array($ext['Descr']) ? $ext['Descr'][0] : $ext['Descr']);
                        label_cell($available ? get_package_view_str($pkg_name, $ext['name']) : $ext['name']);
 
                        label_cell($id === null ? _("None") :