mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
BUGFIX Fixed possible Member::currentUser() problem with inconsistent function names
This commit is contained in:
parent
095d410af4
commit
c3c97201d4
@ -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();
|
||||||
@ -141,7 +142,7 @@ class BlogEntry extends Page {
|
|||||||
/**
|
/**
|
||||||
* Link for editing this blog entry
|
* Link for editing this blog entry
|
||||||
*/
|
*/
|
||||||
function EditURL(){
|
function EditURL() {
|
||||||
return $this->getParent()->Link('post')."/".$this->ID."/";
|
return $this->getParent()->Link('post')."/".$this->ID."/";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user