From 29ae717aa665d296554d801c5556b49a8bf3d5fa Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Wed, 20 Mar 2013 22:53:28 +1300 Subject: [PATCH] FIX: Object::add_extension() is deprecated in 3.1 --- code/Commenting.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/Commenting.php b/code/Commenting.php index 41f530f..2c32170 100644 --- a/code/Commenting.php +++ b/code/Commenting.php @@ -55,7 +55,7 @@ class Commenting { self::$enabled_classes[$class] = $settings; - Object::add_extension($class, 'CommentsExtension'); + $class::add_extension('CommentsExtension'); } /** @@ -69,7 +69,7 @@ class Commenting { unset(self::$enabled_classes[$class]); } - Object::remove_extension($class, 'CommentsExtension'); + $class::remove_extension('CommentsExtension'); } /**