Project:Stock
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Following the discussion on #284223: Allow customization of 'Save' and 'Quote' buttons text, this bug related to the following pieces of code inside stock.module:
inisde stock_menu():

<?php
  $title
= t(variable_get('stock_overview_title', 'Stock quote'));
?>

and inside stock_block():

<?php
  $title
= variable_get('stock_block_title', 'Stocks');
..
     
$block[0]['info'] = t($title);
...
         
$block['subject'] = t($title);
?>

t() calls should only be used with constants.

nobody click here