Glossary now gets the alphabet string from moodle.php instead of glossary.php

This commit is contained in:
moodler
2003-11-04 12:36:55 +00:00
parent ba33f1dd2f
commit c427414996
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -953,7 +953,7 @@ global $CFG;
function glossary_print_alphabet_links($cm, $glossary,$l, $tab) {
global $CFG;
if ( $glossary->showalphabet and $glossary->displayformat != GLOSSARY_FORMAT_CONTINUOUS ) {
$alphabet = explode("|", get_string("alphabet","glossary"));
$alphabet = explode(",", get_string("alphabet"));
$letters_by_line = 14;
for ($i = 0; $i < count($alphabet); $i++) {
if ( $l == $alphabet[$i] and $l) {
@@ -1271,4 +1271,4 @@ function glossary_check_dir_exists($dir,$create=false) {
}
return $status;
}
?>
?>
+1 -1
View File
@@ -97,7 +97,7 @@
$search = '';
}
$alphabet = explode('|', get_string("alphabet","glossary"));
$alphabet = explode(',', get_string("alphabet"));
if ($l == '' and $search == '' and !$eid) {
// if the user is just entering the glossary...
if ($tab != GLOSSARY_APPROVAL_VIEW) {