public function editPost(&$callbackId, $translate = false) { $boards = $this->_model->getBoard(); $topic = $this->_model->getTopic(); $vars =& PPostHandler::getVars($callbackId); $all_tags = $this->_model->getAllTags(); $locationDropdowns = $this->getLocationDropdowns(); $groupsDropdowns = $this->getGroupsDropdowns($this->_model->IdGroup); $allow_title = $vars['first_postid'] == $vars['postid']; $edit = true; $messageid = $this->_model->getMessageId(); $notifymecheck = ""; if ($this->_model->IsThreadSubscribed($this->_model->getThreadId(), $_SESSION["IdMember"])) { $notifymecheck = 'checked="checked"'; // This is to tell that the notifyme cell is preticked } $IdGroup = $this->_model->IdGroup; $visibilityThread = $this->_model->GetThreadVisibility($vars['threadid']); $visibilityPost = $this->_model->GetPostVisibility($vars['postid']); $visibilityCheckbox = $this->getVisibilityCheckbox($visibilityPost, $visibilityThread, $IdGroup, $allow_title); // By default no appropriated language is propose, the member can choose to translate $LanguageChoices = $this->_model->LanguageChoices(); if (!$translate) { // In case this is a edit, by default force the original post language $IdContent = $this->_model->getIdContent(); global $fTradIdLastUsedLanguage; $fTradIdLastUsedLanguage = 1; // willbe change by ftrad $word = new MOD_words(); // This function is just called for finding the language in which one the post will be displayed $void_string = $word->ftrad($IdContent); $AppropriatedLanguage = $fTradIdLastUsedLanguage; } $disableTinyMCE = $this->_model->getTinyMCEPreference(); require 'templates/editcreateform.php'; }