From 22fe8f7ad0bcdc87d21a3460bd9e553dcd858906 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 26 Nov 2014 01:03:11 +0100 Subject: [PATCH] Added additional __toString() method --- .../install/files/lib/data/category/Category.class.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wcfsetup/install/files/lib/data/category/Category.class.php b/wcfsetup/install/files/lib/data/category/Category.class.php index 16fc69422d..9708a44968 100644 --- a/wcfsetup/install/files/lib/data/category/Category.class.php +++ b/wcfsetup/install/files/lib/data/category/Category.class.php @@ -219,4 +219,11 @@ class Category extends ProcessibleDatabaseObject implements IPermissionObject, I parent::handleData($data); } + + /** + * @see \wcf\data\ITitledObject::getTitle() + */ + public function __toString() { + return $this->getTitle(); + } } -- 2.20.1