Skip to content
Browse files

- Testing... If you can read this.. I solved the problem (thanks to M…

…artin)! :)
  • Loading branch information...
1 parent 46fc277 commit ff6c782016855919878822d925e14c2bfea4a959 willcast committed Oct 16, 2003
Showing with 4 additions and 4 deletions.
  1. +4 −4 mod/glossary/dynalink.php
View
8 mod/glossary/dynalink.php
@@ -12,17 +12,17 @@ function glossary_dynamic_link($courseid, $text,$glossaryid = NULL) {
static $glossary; // even when dealing with the same glossary
if ( !$glossary and !$glossaryid ) {
- $PermissionGranted = 1; // if it is the first call and no glossary was specify
+ $permissiongranted = 1; // if it is the first call and no glossary was specify
} elseif ( $glossaryid ) {
if ( $glossary ) { // if it is not the first call
if ( $glossary->id != $glossaryid ) { // ...and the specified glossary is different from the previous call
- $PermissionGranted = 1;
+ $permissiongranted = 1;
}
} else {
- $PermissionGranted = 1; // if it is the first call and a glossary was specify
+ $permissiongranted = 1; // if it is the first call and a glossary was specify
}
}
- if ( $PermissionGranted ) {
+ if ( $permissiongranted ) {
if ( !$glossaryid ) { // If no glossary was specify, fetch the main glossary of the course
$glossary = get_record("glossary","course",$courseid,"mainglossary",1);
} else { // if a glossary as specify, fetch this one

0 comments on commit ff6c782

Please sign in to comment.
Something went wrong with that request. Please try again.