mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 09:05:49 +00:00
MINOR Disabled deprecation warning in CommentsExtension->PageComments(), its very commonly used in pretty much every theme out there, and needlessly annoying to throw a warning for
This commit is contained in:
parent
2f0a022059
commit
cf336d7fb3
@ -134,7 +134,8 @@ class CommentsExtension extends DataObjectDecorator {
|
||||
* @deprecated 1.0 Please use {@link CommentsExtension->CommentsForm()}
|
||||
*/
|
||||
function PageComments() {
|
||||
user_error('$PageComments is deprecated. Please use $CommentsForm', E_USER_WARNING);
|
||||
// This method is very commonly used, don't throw a warning just yet
|
||||
//user_error('$PageComments is deprecated. Please use $CommentsForm', E_USER_WARNING);
|
||||
|
||||
return $this->CommentsForm();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user