Commit 1d4c3417 authored by anthonylindsay's avatar anthonylindsay

Removed redundant call to t() and fixed a call to variable_get().

parent ce3f6afc
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment