[0003084] Database password with special chars was stored distorted in config_db.
[fa-stable.git] / admin / print_profiles.php
index f9972980fc7b0800650181c84b4ddf06f6950e01..bf3d698f7cc0f0c7911dea339e53b7b4f0b71431 100644 (file)
@@ -23,9 +23,9 @@ $selected_id = get_post('profile_id','');
 // Returns array of defined reports
 //
 function get_reports() {
-       global $path_to_root, $go_debug;
+       global $path_to_root, $SysPrefs;
 
-if ($go_debug || !isset($_SESSION['reports'])) {       
+if ($SysPrefs->go_debug || !isset($_SESSION['reports'])) {     
        // to save time, store in session.
                $paths = array (
                        $path_to_root.'/reporting/',
@@ -105,7 +105,7 @@ if ( get_post('submit'))
                update_printer_profile($_POST['profile_id'], $prof);
                if ($selected_id == '') {
                        display_notification_centered(_('New printing profile has been created')); 
-                       clear_form();
+                       clear_form($selected_id);
                } else {
                        display_notification_centered(_('Printing profile has been updated'));
                }
@@ -144,7 +144,7 @@ while ($myrow = db_fetch($result)) {
        $prints[$myrow['report']] = $myrow['printer'];
 }
 
-start_table($table_style);
+start_table(TABLESTYLE);
 $th = array(_("Report Id"), _("Description"), _("Printer"));
 table_header($th);
 
@@ -184,4 +184,3 @@ div_end();
 end_form();
 end_page();
 
-?>