From 61d87dbfb6262be79310b263a51391f3b1d24958 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sat, 6 Feb 2016 15:22:05 +0100 Subject: [PATCH] Improve backwards compatibility of AbstractModificationLogHandler --- .../AbstractModificationLogHandler.class.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/log/modification/AbstractModificationLogHandler.class.php b/wcfsetup/install/files/lib/system/log/modification/AbstractModificationLogHandler.class.php index 4fbc4fbb67..d09c0ad257 100644 --- a/wcfsetup/install/files/lib/system/log/modification/AbstractModificationLogHandler.class.php +++ b/wcfsetup/install/files/lib/system/log/modification/AbstractModificationLogHandler.class.php @@ -36,7 +36,7 @@ abstract class AbstractModificationLogHandler extends SingletonFactory { protected $objectTypeName = ''; /** - * @inheritdoc + * @inheritDoc * @throws SystemException */ protected function init() { @@ -140,9 +140,15 @@ abstract class AbstractModificationLogHandler extends SingletonFactory { /** * Returns the modifiable content object type. * + * @param string $objectType name of the modifiable content object type, deprecated parameter * @return ObjectType */ - public function getObjectType() { + public function getObjectType($objectType = null) { + // allow parameter for better backwards compatibility with ModificationLogHandler + if ($objectType !== null) { + return ObjectTypeCache::getInstance()->getObjectTypeByName('com.woltlab.wcf.modifiableContent', $objectType); + } + return $this->objectType; } -- 2.20.1