Access to system settings moved from global scope to SysPrefs.
[fa-stable.git] / purchasing / supplier_payment.php
index d43f227392cc9b93807a9242f3df4c91fed1e8e0..babb02d9df4ed9283508d9b4bdc575035eb99b8f 100644 (file)
@@ -21,7 +21,7 @@ include_once($path_to_root . "/purchasing/includes/purchasing_db.inc");
 include_once($path_to_root . "/reporting/includes/reporting.inc");
 
 $js = "";
-if ($use_popup_windows)
+if ($SysPrefs->use_popup_windows)
        $js .= get_js_open_window(900, 500);
 if (user_use_date_picker())
        $js .= get_js_date_picker();