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:
defacer 2005-05-07 16:25:46 +00:00
parent cec60526cc
commit cfab68844e
2 changed files with 9 additions and 3 deletions

View File

@ -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

View File

@ -0,0 +1,6 @@
<?php //$Id$
$string['blocktitle'] = 'Search Forums';
$string['advancedsearch'] = 'Advanced search';
?>