Questionable function call:

Undefined variable $privateMessagesText if private messaging hasn't been enabled and if line 355 didn't exist.

Do we really need the function as it seems to copy what we already have in line 354+...?