diff --git a/lib/tablelib.php b/lib/tablelib.php index 6d7bfa9ebad..5092eb5edcf 100644 --- a/lib/tablelib.php +++ b/lib/tablelib.php @@ -328,6 +328,22 @@ class flexible_table { return ''; } + function get_initial_first() { + if(!$this->use_initials) { + return NULL; + } + + return $this->sess->i_first; + } + + function get_initial_last() { + if(!$this->use_initials) { + return NULL; + } + + return $this->sess->i_last; + } + function print_html() { global $CFG; @@ -346,7 +362,7 @@ class flexible_table { // Bar of first initials - echo '
'.get_string('firstname').' : '; + echo '
'.get_string('firstname').' : '; if(!empty($this->sess->i_first)) { echo ''.$strall.''; } else { @@ -363,7 +379,7 @@ class flexible_table { // Bar of last initials - echo '
'.get_string('lastname').' : '; + echo '
'.get_string('lastname').' : '; if(!empty($this->sess->i_last)) { echo ''.$strall.''; } else {