Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-33996 Forum search. Stop displaying raw search strings to users

  • Loading branch information...
commit b74c9a9fec07ee9a9c4d0b43d928f16e0d07accb 1 parent 1dd6835
Mark Johnson authored mudrd8mz committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/forum/search.php
View
4 mod/forum/search.php
@@ -141,12 +141,12 @@
$searchform = forum_search_form($course, $search);
$PAGE->navbar->add($strsearch, new moodle_url('/mod/forum/search.php', array('id'=>$course->id)));
-$PAGE->navbar->add(s($search, true));
+$PAGE->navbar->add($strsearchresults);
if (!$posts = forum_search_posts($searchterms, $course->id, $page*$perpage, $perpage, $totalcount)) {
$PAGE->set_title($strsearchresults);
$PAGE->set_heading($course->fullname);
echo $OUTPUT->header();
- echo $OUTPUT->heading(get_string("nopostscontaining", "forum", $search));
+ echo $OUTPUT->heading(get_string("noposts", "forum"));
if (!$individualparams) {
$words = $search;
Please sign in to comment.
Something went wrong with that request. Please try again.