1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 13:47:31 +02:00

Notice Removal - FAQ

Notice Removal - FAQ
This commit is contained in:
MikeyGMT
2017-01-02 15:36:25 +00:00
parent c435f68d50
commit caeba315fd

View File

@@ -122,7 +122,7 @@ if (isset($_POST['commentsubmit']))
$faqpref = e107::getPlugConfig('faqs')->getPref(); $faqpref = e107::getPlugConfig('faqs')->getPref();
if ($action == "" || $action == "main") if (varset($action) == "" || $action == "main")
{ {
if(vartrue($faqpref['classic_look'])) if(vartrue($faqpref['classic_look']))
{ {
@@ -133,7 +133,7 @@ if (isset($_POST['commentsubmit']))
{ {
$srch = vartrue($_GET['srch']); $srch = vartrue($_GET['srch']);
$ftmp = $faq->view_all($srch); $ftmp = $faq->view_all($srch);
$caption = FAQLAN_FAQ; $caption = LAN_FAQS_FAQ;
} }
@@ -178,7 +178,7 @@ if (isset($_POST['commentsubmit']))
if($action == "cat" && $idx) if($action == "cat" && $idx)
{ {
$ftmp = $faq->view_faq($idx) ; $ftmp = $faq->view_faq($idx) ;
define("e_PAGETITLE",FAQLAN_FAQ." - ". $ftmp['title']); define("e_PAGETITLE",LAN_FAQS_FAQ." - ". $ftmp['title']);
require_once(HEADERF); require_once(HEADERF);
$ns -> tablerender($ftmp['caption'], $ftmp['text']); $ns -> tablerender($ftmp['caption'], $ftmp['text']);
} }
@@ -284,7 +284,7 @@ class faq
$text .= $tp->parseTemplate($template['end'], true, $this->sc); // footer $text .= $tp->parseTemplate($template['end'], true, $this->sc); // footer
$ret['title'] = FAQLAN_FAQ; $ret['title'] = LAN_FAQS_FAQ;
$ret['text'] = $text; $ret['text'] = $text;
if (!empty($this->pref['page_title'][e_LANGUAGE])) if (!empty($this->pref['page_title'][e_LANGUAGE]))
@@ -379,8 +379,8 @@ class faq
$prevcat = ""; $prevcat = "";
$sc = e107::getScBatch('faqs', true); $sc = e107::getScBatch('faqs', true);
$sc->counter = 1; $sc->counter = 1;
$sc->tag = htmlspecialchars($tag, ENT_QUOTES, 'utf-8'); $sc->tag = htmlspecialchars(varset($tag), ENT_QUOTES, 'utf-8');
$sc->category = $category; $sc->category = varset($category);
if(!empty($_GET['id'])) // expand one specific FAQ. if(!empty($_GET['id'])) // expand one specific FAQ.
{ {
@@ -475,7 +475,7 @@ class faq
$text .= $tp->parseTemplate($FAQ_LIST_END, true); $text .= $tp->parseTemplate($FAQ_LIST_END, true);
$ret['title'] = FAQLAN_FAQ." - ".$category_title; $ret['title'] = LAN_FAQS_FAQ." - ".$category_title;
$ret['text'] = $text.$this->faq_footer($id); $ret['text'] = $text.$this->faq_footer($id);
$ret['caption'] = $caption; $ret['caption'] = $caption;
return $ret; return $ret;