]> git.mjollnir.org Git - moodle.git/commitdiff
Better button behaviour
authormoodler <moodler>
Sat, 9 Aug 2003 06:02:01 +0000 (06:02 +0000)
committermoodler <moodler>
Sat, 9 Aug 2003 06:02:01 +0000 (06:02 +0000)
mod/forum/search.php

index 96777157b5d2b0b418ed356cdad6b3709ff47228..081468d1225e2023af48856aac4ecbd03cc5246d 100644 (file)
         if (count($posts) == $perpage) {
             $options = array();
             $options["id"] = $course->id;
-            $options["search"] = urlencode($search);
+            $options["search"] = $search;
             $options["page"] = $page+1;
             $options["perpage"] = $perpage;
             echo "<center>";
             print_single_button("search.php", $options, get_string("searcholderposts", "forum"));
             echo "</center>";
+        } else {
+            print_heading(get_string("nomorepostscontaining", "forum", $search));
         }
     }