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() {
|
function CommentText() {
|
||||||
|
|
||||||
if(!class_exists('Comment'))
|
if(!class_exists('Comment')) return false;
|
||||||
return false;
|
|
||||||
|
|
||||||
$unmoderatedcount = DB::query("SELECT COUNT(*) FROM \"Comment\" WHERE \"Moderated\"=0")->value();
|
$unmoderatedcount = DB::query("SELECT COUNT(*) FROM \"Comment\" WHERE \"Moderated\"=0")->value();
|
||||||
if($unmoderatedcount == 1) {
|
if($unmoderatedcount == 1) {
|
||||||
@ -37,8 +36,7 @@ class BlogManagementWidget extends Widget implements PermissionProvider {
|
|||||||
|
|
||||||
function CommentLink() {
|
function CommentLink() {
|
||||||
|
|
||||||
if(!Permission::check('BLOGMANAGEMENT') || !class_exists('Comment'))
|
if(!Permission::check('BLOGMANAGEMENT') || !class_exists('Comment')) return false;
|
||||||
return false;
|
|
||||||
|
|
||||||
return "admin/comments";
|
return "admin/comments";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user