diff --git a/e107_plugins/faqs/faqs.php b/e107_plugins/faqs/faqs.php index c508b3a98..a6938a14f 100644 --- a/e107_plugins/faqs/faqs.php +++ b/e107_plugins/faqs/faqs.php @@ -6,12 +6,8 @@ * Released under the terms and conditions of the * GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * + * FAQ Core Plugin * - * - * $Source: /cvs_backup/e107_0.8/e107_plugins/faqs/faqs.php,v $ - * $Revision$ - * $Date$ - * $Author$ */ if (!defined('e107_INIT')) @@ -233,7 +229,7 @@ class faq if(!empty($this->pref['submit_question_limit']) && $existing >= $this->pref['submit_question_limit']) { - e107::getMessage()->setTitle('Sorry',E_MESSAGE_INFO)->addInfo("You have reached the maximum number of new questions. You may ask more once your existing questions have been answered."); + e107::getMessage()->setTitle(LAN_WARNING,E_MESSAGE_INFO)->addInfo(LAN_FAQS_LIMIT_REACHED); return; } @@ -333,7 +329,7 @@ class faq $insert = " AND (f.faq_question LIKE '%".$srch."%' OR f.faq_answer LIKE '%".$srch."%' OR FIND_IN_SET ('".$srch."', f.faq_tags) ) "; - $message = "".$srch." ×"; + $message = "".$srch." ×"; e107::getMessage()->setClose(false,E_MESSAGE_INFO)->setTitle(LAN_FAQS_FILTER_ACTIVE,E_MESSAGE_INFO)->addInfo($message); $text = e107::getMessage()->render(); @@ -359,7 +355,7 @@ class faq $insert = " AND FIND_IN_SET ('".$srch."', f.faq_tags) "; - $message = "".$srch." ×"; + $message = "".$srch." ×"; e107::getMessage()->setClose(false,E_MESSAGE_INFO)->setTitle(LAN_FAQS_FILTER_ACTIVE,E_MESSAGE_INFO)->addInfo($message); $text = e107::getMessage()->render(); @@ -372,8 +368,8 @@ class faq if(!$data = $sql->retrieve($query, true)) { - $message = (!empty($srch)) ? "".$srch." was not found in search results. Reset" : LAN_FAQS_NONE_AVAILABLE; - return "
".FAQ_ADLAN_49." | -Options | ".LAN_SETTINGS." | "; while ($rw = $sql->db_Fetch()) { @@ -681,8 +677,8 @@ class faq
"; - $text .= (is_numeric($id)) ? "Edit" : "Add"; - $text .= " an FAQ | |