mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
makes author completley unmentionned when no author
This commit is contained in:
parent
488770b7ac
commit
b93b987d2c
2 changed files with 10 additions and 9 deletions
|
@ -1,5 +1,5 @@
|
|||
Cette distribution partielle contient une refonte du moteur de
|
||||
recherche globalde Moodle.
|
||||
recherche globale de Moodle.
|
||||
|
||||
Le moteur de recherche est capable d'indexer et de rechercher
|
||||
des informations dans un grand nombre de contenus stockés
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
}
|
||||
|
||||
if (empty($CFG->enableglobalsearch)) {
|
||||
error(get_string('globalsearchdisabled', 'search'));
|
||||
print_error('globalsearchdisabled', 'search');
|
||||
}
|
||||
|
||||
$adv = new Object();
|
||||
|
@ -335,14 +335,15 @@
|
|||
|
||||
print "<li value='".($listing->number+1)."'><a href='".str_replace('DEFAULT_POPUP_SETTINGS', DEFAULT_POPUP_SETTINGS ,$listing->url)."'>$listing->title</a><br />\n"
|
||||
."<em>".search_shorten_url($listing->url, 70)."</em><br />\n"
|
||||
."{$typestr}: ".$listing->doctype.", {$scorestr}: ".round($listing->score, 3).", {$authorstr}: ".$listing->author."\n"
|
||||
."</li>\n";
|
||||
}
|
||||
|
||||
."{$typestr}: ".$listing->doctype.", {$scorestr}: ".round($listing->score, 3);
|
||||
if (!empty($listing->author)){
|
||||
print ", {$authorstr}: ".$listing->author."\n"
|
||||
."</li>\n";
|
||||
}
|
||||
}
|
||||
print "</ol>";
|
||||
print $page_links;
|
||||
}
|
||||
|
||||
}
|
||||
print_box_end();
|
||||
?>
|
||||
<div align="center">
|
||||
|
@ -357,4 +358,4 @@
|
|||
}
|
||||
print_box_end();
|
||||
print_footer();
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue