BUGFIX Fixed possible Member::currentUser() problem with inconsistent function names

This commit is contained in:
Sean Harvey 2008-11-06 00:35:10 +00:00
parent 095d410af4
commit c3c97201d4

View File

@ -62,7 +62,8 @@ class BlogEntry extends Page {
function getCMSFields() { function getCMSFields() {
Requirements::javascript('blog/javascript/bbcodehelp.js'); Requirements::javascript('blog/javascript/bbcodehelp.js');
Requirements::css('blog/css/bbcodehelp.css'); Requirements::css('blog/css/bbcodehelp.css');
$firstName = Member::CurrentMember() ? Member::currentMember()->FirstName : '';
$firstName = Member::currentUser() ? Member::currentUser()->FirstName : '';
$codeparser = new BBCodeParser(); $codeparser = new BBCodeParser();
$fields = parent::getCMSFields(); $fields = parent::getCMSFields();