Access to system settings moved from global scope to SysPrefs.
[fa-stable.git] / sales / includes / cart_class.inc
index 612391642ccbbb5f9f3ef923ef9db3c980757752..4a99d3cd4800d226dd2dc7e11d046c508d924455 100644 (file)
@@ -116,10 +116,10 @@ class cart
        */
        function get_items()
        {
-               global $sort_sales_items;
+               global $SysPrefs;
 
                $items = $this->line_items;
-               if (@$sort_sales_items)
+               if (@$SysPrefs->sort_sales_items)
                        uasort($items, array($this, '_cmp_lines'));
 
                return $items;