/** * Adds the tag module to the page. */ private function _AddTagModule($Sender) { if (!C('Plugins.Tagging.Enabled')) { return; } $Sender->AddCSSFile('plugins/Tagging/design/tag.css'); $DiscussionID = property_exists($Sender, 'DiscussionID') ? $Sender->DiscussionID : 0; include_once PATH_PLUGINS . '/Tagging/class.tagmodule.php'; $TagModule = new TagModule($Sender); $TagModule->GetData($DiscussionID); $Sender->AddModule($TagModule); }
/** * Adds the tag module to the page. */ private function _AddTagModule($Sender) { $DiscussionID = property_exists($Sender, 'DiscussionID') ? $Sender->DiscussionID : 0; include_once PATH_PLUGINS . '/Tagging/class.tagmodule.php'; $TagModule = new TagModule($Sender); $TagModule->GetData($DiscussionID); $Sender->AddModule($TagModule); }