Access to system settings moved from global scope to SysPrefs.
[fa-stable.git] / sales / view / view_credit.php
index f006f4f3467783655244541ad6b85ee8d3c75927..f7e8c2995f5362eecc6c1c2ff3f691aabe2109c1 100644 (file)
@@ -19,7 +19,7 @@ include_once($path_to_root . "/includes/ui.inc");
 include_once($path_to_root . "/sales/includes/sales_db.inc");
 
 $js = "";
-if ($use_popup_windows)
+if ($SysPrefs->use_popup_windows)
        $js .= get_js_open_window(900, 500);
 page(_($help_context = "View Credit Note"), true, false, "", $js);