From: Matthias Schmidt Date: Sat, 6 Feb 2016 14:22:05 +0000 (+0100) Subject: Improve backwards compatibility of AbstractModificationLogHandler X-Git-Tag: 3.0.0_Beta_1~2054 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=61d87dbfb6262be79310b263a51391f3b1d24958;p=GitHub%2FWoltLab%2FWCF.git Improve backwards compatibility of AbstractModificationLogHandler --- 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; }