This feels like a regression.
The correct code may be something like:
But I'm unsure why this plugin would be using a "post" type instead of a "private message" type post rendering.
Laird may be more suited to review this.
Regards.
The correct code may be something like:
switch($post_type)
{
case 2: // Private message
$icon_cache = (array)$cache->read("posticons");
break;
default:
global $forum;
if(!isset($forum['allowpicons']) || $forum['allowpicons'] != 0)
{
$icon_cache = (array)$cache->read("posticons");
}
}
But I'm unsure why this plugin would be using a "post" type instead of a "private message" type post rendering.
Laird may be more suited to review this.
Regards.