After upgrading to 2014-09-29d "Hrun", the following fatal error is logged.
PHP Fatal error: Call to undefined method cache::__construct() in /Users/zdev/dev/mamp/apache2/htdocs/wiki/lib/plugins/translation/action.php on line 167
The code in function translation_jscache() changed...
function translation_jscache(&$event, $args) {
if(!isset($_GET['lang'])) return;
if(!in_array($_GET['lang'], $this->helper->translations)) return;
$lang = $_GET['lang'];
// reuse the constructor to reinitialize the cache key
$event->data->__construct ( // BUG???
$event->data->key . $lang,
$event->data->ext
);
}
I changed the code to use cache() instead of __construct(), and the fatal error is resolved.
Is this a bug?