Removed htmlentities from e-mail subjects
Replaced remaining calls of $this->createTemplates() with parent::__construct();

Also removed $sid parameter from displaylinksforpagearray($sid,$page)