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
1 changed files with 4 additions and 3 deletions

View File

@ -62,8 +62,9 @@ class BlogEntry extends Page {
function getCMSFields() {
Requirements::javascript('blog/javascript/bbcodehelp.js');
Requirements::css('blog/css/bbcodehelp.css');
$firstName = Member::CurrentMember() ? Member::currentMember()->FirstName : '';
$codeparser = new BBCodeParser();
$firstName = Member::currentUser() ? Member::currentUser()->FirstName : '';
$codeparser = new BBCodeParser();
$fields = parent::getCMSFields();
@ -141,7 +142,7 @@ class BlogEntry extends Page {
/**
* Link for editing this blog entry
*/
function EditURL(){
function EditURL() {
return $this->getParent()->Link('post')."/".$this->ID."/";
}