Access to system settings moved from global scope to SysPrefs.
[fa-stable.git] / purchasing / view / view_po.php
index dd2ffeb5785633736c2bc5d87286c169335987d5..666a637b13a931b94184987883a209824a74157b 100644 (file)
@@ -17,7 +17,7 @@ include($path_to_root . "/includes/session.inc");
 include($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 Purchase Order"), true, false, "", $js);