From 019661ab599da80a83d77dc1fabea720ef23779e Mon Sep 17 00:00:00 2001 From: Christopher Pitt Date: Tue, 14 Apr 2015 15:16:34 +1200 Subject: [PATCH] Fixed a PHP 5.3.3 in closure bug --- code/model/BlogPost.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/model/BlogPost.php b/code/model/BlogPost.php index afc0f3f..32b2a70 100644 --- a/code/model/BlogPost.php +++ b/code/model/BlogPost.php @@ -174,14 +174,14 @@ class BlogPost extends Page { _t('BlogPost.Categories', 'Categories'), $self->Parent()->Categories()->map(), $self->Categories()->map(), - !$this->canCreateCategories() + !$self->canCreateCategories() ), TagField::create( 'Tags', _t('BlogPost.Tags', 'Tags'), $self->Parent()->Tags()->map(), $self->Tags()->map(), - !$this->canCreateTags() + !$self->canCreateTags() ), $authorField, $authorNames