I forgot to unset the $CFG->emoticon from the memory so the upgrade
process still had the old emoticons format loaded in the memory which
led to coding exception.
global $CFG;
$manager = get_emoticon_manager();
+
$config = $this->config_read($this->name);
+ if (is_null($config)) {
+ return null;
+ }
+ $config = $manager->decode_stored_config($config);
if (is_null($config)) {
return null;
}
- return $this->prepare_form_data($manager->decode_stored_config($config));
+ return $this->prepare_form_data($config);
}
/**
// new format of the emoticons setting
if ($oldversion < 2010102300) {
+ unset($CFG->emoticons);
$DB->delete_records('config', array('name' => 'emoticons'));
$DB->delete_records('cache_text'); // changed md5 hash calculation
upgrade_main_savepoint(true, 2010102300);