Maintains backwards compatibilty with DisplayAs: Default-type categories by calculating the DisplayAs
property into an expected DisplayAs type: Categories, Heading, or Discussions. Respects the now-deprecated
config setting Vanilla.Categories.DoHeadings. Once we can be sure that all instances have their
categories' DisplayAs properties explicitly set in the database (i.e., not Default) we can deprecate/remove
this function.
public static calculateDisplayAs ( &$category ) | ||
$category | The category to calculate the DisplayAs property for. |