Cleanup and preparing for XLS extension in class.mail.inc.
[fa-stable.git] / purchasing / view / view_po.php
index 193bfa471c8a89bfe7dbcf9be47d7673d6cc0b4a..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);
 
@@ -161,4 +161,3 @@ display_allocations_to(PT_SUPPLIER, $purchase_order->supplier_id, ST_PURCHORDER,
 
 end_page(true, false, false, ST_PURCHORDER, $_GET['trans_no']);
 
-?>