PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Internationalization » Translation2 » Bug #3914

Translation2 'CacheMemory' Decorator class get() bug!

Details

Submitted2005-03-22 11:05 UTC
Fromivanchoo at singnet dot com dot sg
Assignedquipo
StatusClosed
PackageTranslation2
PHP Version4.3.10
OSDarwin OS X
Roadmaps(Not assigned)

Comments

[2005-03-22 11:05 UTC] ivanchoo at singnet dot com dot sg

Description:
------------
The decorator does not cache upon prefetch, as the get()
method wrongly calls the getRawPage() instead of
getPage().

Changing the code fixes this problem.

Reproduce code:
---------------
function get() {
...

if ($this->prefetch) {
$this->getRawPage($pageID, $langID);
}

to

if ($this->prefetch) {
$this->getPage($pageID, $langID);
}