Revert "Refresh the internal data of cached reactions"
authorAlexander Ebert <ebert@woltlab.com>
Thu, 28 Sep 2023 15:17:39 +0000 (17:17 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 28 Sep 2023 15:17:39 +0000 (17:17 +0200)
This reverts commit 701cba1bd001f09e6b2935523e37fa04820338bc.

wcfsetup/install/files/lib/data/reaction/type/ReactionType.class.php

index 125c2df77620f29202dade512704896b5d053545..b5a6f94c664329f7584472f8d9838634e3d8b851 100644 (file)
@@ -4,7 +4,6 @@ namespace wcf\data\reaction\type;
 
 use wcf\data\DatabaseObject;
 use wcf\data\ITitledObject;
-use wcf\system\reaction\ReactionHandler;
 use wcf\system\WCF;
 
 /**
@@ -28,18 +27,6 @@ class ReactionType extends DatabaseObject implements ITitledObject
      */
     protected static $databaseTableIndexName = 'reactionTypeID';
 
-    /**
-     * @inheritDoc
-     */
-    public function __wakeup()
-    {
-        $reaction = ReactionHandler::getInstance()->getReactionTypeByID($this->reactionTypeID);
-        if ($reaction) {
-            $this->title = $reaction->title;
-            $this->iconFile = $reaction->iconFile;
-        }
-    }
-
     /**
      * @inheritDoc
      */