variables inside t()
yhager - July 20, 2008 - 05:17
| Project: | Stock |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
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.
