Fixed more php 8.2 deprecation bugs.
[fa-stable.git] / manufacturing / view / work_order_view.php
index 2cd9619db549fb5d09b19acc2d081c8691d129a5..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);