mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Adding a new lang file for the search forums block (no need to load up the
forum.php behemoth just for that) and moving a couple of strings there. Hardwired strings and capitalization all fixed. This fixes bugs 3090 and 3154.
This commit is contained in:
parent
cec60526cc
commit
cfab68844e
@ -2,7 +2,7 @@
|
||||
|
||||
class block_search_forums extends block_base {
|
||||
function init() {
|
||||
$this->title = get_string('searchforums', 'forum');
|
||||
$this->title = get_string('blocktitle', 'block_search_forums');
|
||||
$this->version = 2005030900;
|
||||
}
|
||||
|
||||
@ -21,8 +21,8 @@ class block_search_forums extends block_base {
|
||||
return $this->content;
|
||||
}
|
||||
|
||||
$advancedsearch = get_string('advancedsearch', 'forum');
|
||||
$advancedsearch = 'Advanced search';
|
||||
$advancedsearch = get_string('advancedsearch', 'block_search_forums');
|
||||
|
||||
$this->content->text = '<div class="searchform">';
|
||||
$this->content->text .= '<form name="search" action="'.$CFG->wwwroot.'/mod/forum/search.php" style="display:inline">';
|
||||
$this->content->text .= '<input name="id" type="hidden" value="'.$this->instance->pageid.'" />'; // course
|
||||
|
6
lang/en/block_search_forums.php
Normal file
6
lang/en/block_search_forums.php
Normal file
@ -0,0 +1,6 @@
|
||||
<?php //$Id$
|
||||
|
||||
$string['blocktitle'] = 'Search Forums';
|
||||
$string['advancedsearch'] = 'Advanced search';
|
||||
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user