Access to system settings moved from global scope to SysPrefs.
[fa-stable.git] / purchasing / view / view_supp_invoice.php
index ad7030aaaadf47bdba28d5f7f00853c08c7d67b8..98d5cdc4dd75560e70338e476d48f78dc93953c0 100644 (file)
@@ -19,7 +19,7 @@ include_once($path_to_root . "/includes/session.inc");
 include_once($path_to_root . "/purchasing/includes/purchasing_ui.inc");
 
 $js = "";
-if ($use_popup_windows)
+if ($SysPrefs->use_popup_windows)
        $js .= get_js_open_window(900, 500);
 page(_($help_context = "View Supplier Invoice"), true, false, "", $js);
 
@@ -84,4 +84,3 @@ if (!$voided)
 
 end_page(true, false, false, ST_SUPPINVOICE, $trans_no);
 
-?>
\ No newline at end of file