Fixed more php 8.2 deprecation bugs.
[fa-stable.git] / manufacturing / view / work_order_view.php
index 611fe88caf0b4637a19c5f93adde1e1bd257aec2..4d999ab9c705d9925bcba071b1a0cb24eb2c9bc8 100644 (file)
@@ -15,13 +15,12 @@ $path_to_root = "../..";
 include_once($path_to_root . "/includes/session.inc");
 
 include_once($path_to_root . "/includes/date_functions.inc");
-include_once($path_to_root . "/includes/manufacturing.inc");
 include_once($path_to_root . "/includes/data_checks.inc");
 
 include_once($path_to_root . "/manufacturing/includes/manufacturing_db.inc");
 include_once($path_to_root . "/manufacturing/includes/manufacturing_ui.inc");
 $js = "";
-if ($use_popup_windows)
+if ($SysPrefs->use_popup_windows)
        $js .= get_js_open_window(800, 500);
 page(_($help_context = "View Work Order"), true, false, "", $js);
 
@@ -83,4 +82,3 @@ is_voided_display(ST_WORKORDER, $woid, _("This work order has been voided."));
 
 end_page(true, false, false, ST_WORKORDER, $woid);
 
-?>