PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

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);
}