// // Create a new Category data provider // $categoryData = new PMF_Category_Tree_DataProvider_SingleQuery($LANGCODE); // // Create a new Tags object // $oTag = new PMF_Tags(); // // Found a record ID? // $id = PMF_Filter::filterInput(INPUT_GET, 'id', FILTER_VALIDATE_INT); if (!is_null($id)) { $title = ' - ' . $faq->getRecordTitle($id); $keywords = ',' . $faq->getRecordKeywords($id); $metaDescription = $faq->getRecordPreview($id); } else { $id = ''; $title = ' - powered by phpMyFAQ ' . $faqconfig->get('main.currentVersion'); $keywords = ''; $metaDescription = $faqconfig->get('main.metaDescription'); } // // found a solution ID? // $solution_id = PMF_Filter::filterInput(INPUT_GET, 'solution_id', FILTER_VALIDATE_INT); if (!is_null($solution_id)) { $title = ' - powered by phpMyFAQ ' . $faqconfig->get('main.currentVersion'); $keywords = ''; $faqData = $faq->getIdFromSolutionId($solution_id); if (is_array($faqData)) {
// Create a new Category object // $category = new PMF_Category($faqConfig, $current_groups, true); $category->setUser($current_user); // // Create a new Tags object // $oTag = new PMF_Tags($faqConfig); // // Found a record ID? // $id = PMF_Filter::filterInput(INPUT_GET, 'id', FILTER_VALIDATE_INT); if (!is_null($id)) { $title = ' - ' . $faq->getRecordTitle($id); $keywords = ',' . $faq->getRecordKeywords($id); $metaDescription = str_replace('"', '', $faq->getRecordPreview($id)); } else { $id = ''; $title = ' - powered by phpMyFAQ ' . $faqConfig->get('main.currentVersion'); $keywords = ''; $metaDescription = str_replace('"', '', $faqConfig->get('main.metaDescription')); } // // found a solution ID? // $solutionId = PMF_Filter::filterInput(INPUT_GET, 'solution_id', FILTER_VALIDATE_INT); if (!is_null($solutionId)) { $title = ' - powered by phpMyFAQ ' . $faqConfig->get('main.currentVersion'); $keywords = ''; $faqData = $faq->getIdFromSolutionId($solutionId); if (is_array($faqData)) {