mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02: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 changed files with 9 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
class block_search_forums extends block_base {
|
class block_search_forums extends block_base {
|
||||||
function init() {
|
function init() {
|
||||||
$this->title = get_string('searchforums', 'forum');
|
$this->title = get_string('blocktitle', 'block_search_forums');
|
||||||
$this->version = 2005030900;
|
$this->version = 2005030900;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,8 +21,8 @@ class block_search_forums extends block_base {
|
||||||
return $this->content;
|
return $this->content;
|
||||||
}
|
}
|
||||||
|
|
||||||
$advancedsearch = get_string('advancedsearch', 'forum');
|
$advancedsearch = get_string('advancedsearch', 'block_search_forums');
|
||||||
$advancedsearch = 'Advanced search';
|
|
||||||
$this->content->text = '<div class="searchform">';
|
$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 .= '<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
|
$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…
Add table
Add a link
Reference in a new issue