Access to system settings moved from global scope to SysPrefs.
[fa-stable.git] / manufacturing / view / work_order_view.php
index 2cd9619db549fb5d09b19acc2d081c8691d129a5..b298555e24e1031502fb5a7a082b5ca9529fdd23 100644 (file)
@@ -21,7 +21,7 @@ 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);