MDL-29191 - Show creator's fullname instead of username
authorSun Zhigang <sunner@gmail.com>
Wed, 31 Aug 2011 08:36:31 +0000 (16:36 +0800)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Sun, 16 Oct 2011 16:52:35 +0000 (18:52 +0200)
mod/wiki/pagelib.php

index 59690f7..7fa366f 100644 (file)
@@ -1218,7 +1218,7 @@ class page_wiki_history extends page_wiki {
         $creator = wiki_get_user_info($version0page->userid);
         $a = new StdClass;
         $a->date = userdate($this->page->timecreated, get_string('strftimedaydatetime', 'langconfig'));
-        $a->username = $creator->username;
+        $a->username = fullname($creator);
         echo $OUTPUT->heading(get_string('createddate', 'wiki', $a), 4, 'wiki_headingtime');
         if ($vcount > 0) {