Home » Internationalization » Translation2 » Bug #3914
Translation2 'CacheMemory' Decorator class get() bug!
Details
| Submitted | 2005-03-22 11:05 UTC |
|---|---|
| From | ivanchoo at singnet dot com dot sg |
| Assigned | quipo |
| Status | Closed |
| Package | Translation2 |
| PHP Version | 4.3.10 |
| OS | Darwin 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);
}