mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
FIXED: Coding style to conform correctly to standards.
This commit is contained in:
parent
f9620de394
commit
4caf44a411
@ -22,8 +22,7 @@ class BlogManagementWidget extends Widget implements PermissionProvider {
|
||||
|
||||
function CommentText() {
|
||||
|
||||
if(!class_exists('Comment'))
|
||||
return false;
|
||||
if(!class_exists('Comment')) return false;
|
||||
|
||||
$unmoderatedcount = DB::query("SELECT COUNT(*) FROM \"Comment\" WHERE \"Moderated\"=0")->value();
|
||||
if($unmoderatedcount == 1) {
|
||||
@ -37,8 +36,7 @@ class BlogManagementWidget extends Widget implements PermissionProvider {
|
||||
|
||||
function CommentLink() {
|
||||
|
||||
if(!Permission::check('BLOGMANAGEMENT') || !class_exists('Comment'))
|
||||
return false;
|
||||
if(!Permission::check('BLOGMANAGEMENT') || !class_exists('Comment')) return false;
|
||||
|
||||
return "admin/comments";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user