diff --git a/commerce_popular_products.module b/commerce_popular_products.module index f8887dea47f2d4d0ebbe85cb66ea433a5538ff56..fe77580bbf6d06d87ec16183418ba18df69ba961 100644 --- a/commerce_popular_products.module +++ b/commerce_popular_products.module @@ -18,7 +18,7 @@ function commerce_popular_products_commerce_checkout_complete($order) { */ function commerce_popular_products_get_product() { // Fetch settings for use. - $time = variable_get('commerce_popular_products_time', $default = 'month'); + $time = variable_get('commerce_popular_products_time', 'month'); $products = variable_get('commerce_popular_products_products'); if (isset($products)) { // Gather information on all the Commerce product reference fields in use. @@ -134,8 +134,7 @@ function commerce_popular_products_block_view($delta = '') { $block = array(); switch ($delta) { case 'popular-product-block': - $title = variable_get('commerce_popular_products_title'); - $block['subject'] = t('@title', array('@title' => $title)); + $block['subject'] = variable_get('commerce_popular_products_title'); $block['content'] = commerce_popular_products_get_content(); break;