Ticket #88 (new defect)

Opened 1 year ago

GetText::setClass() doesn't work with Solar_View::newhelper()

Reported by: Antti Holvikari Assigned to: pmjones
Priority: minor Component: code
Keywords: Cc:

Description

Per IRC discussion between Paul and Antti:

"pmjones: it's because getText() uses getHelper() internally to set the class name"

So this is what happens:

$helper = $this->newHelper('GetText');
$helper->setClass('Vendor_Class');

// this will use Vendor_Class too!!!!
$this->getText('LOCALE_KEY');

Attachments


Add/Change #88 (GetText::setClass() doesn't work with Solar_View::newhelper())