mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
MDL-54926 search: Reduce over-escaping in results
This commit is contained in:
parent
b8474fe0c7
commit
4e2b5191d4
6 changed files with 153 additions and 5 deletions
|
@ -99,6 +99,18 @@ class core_search_generator extends component_generator_base {
|
|||
$info->content = $options->content;
|
||||
}
|
||||
|
||||
if (!isset($options->description1)) {
|
||||
$info->description1 = 'Description 1.';
|
||||
} else {
|
||||
$info->description1 = $options->description1;
|
||||
}
|
||||
|
||||
if (!isset($options->description2)) {
|
||||
$info->description2 = 'Description 2.';
|
||||
} else {
|
||||
$info->description2 = $options->description2;
|
||||
}
|
||||
|
||||
if (!isset($options->title)) {
|
||||
$info->title = 'A basic title';
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue