From: Alexander Ebert Date: Fri, 4 Dec 2015 13:25:12 +0000 (+0100) Subject: Using proper class name resolution X-Git-Tag: 3.0.0_Beta_1~2030^2~212^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=adaa7de7db1dade27c027f4fcfbd64a74f080b67;p=GitHub%2FWoltLab%2FWCF.git Using proper class name resolution --- diff --git a/wcfsetup/install/files/lib/data/page/Page.class.php b/wcfsetup/install/files/lib/data/page/Page.class.php index 6b185b8663..4bdab514fa 100644 --- a/wcfsetup/install/files/lib/data/page/Page.class.php +++ b/wcfsetup/install/files/lib/data/page/Page.class.php @@ -123,7 +123,7 @@ class Page extends DatabaseObject { $statement = WCF::getDB()->prepareStatement($sql); $statement->execute([$identifier]); - return $statement->fetchObject(Page::class); + return $statement->fetchObject(self::class); } /** @@ -139,6 +139,6 @@ class Page extends DatabaseObject { $statement = WCF::getDB()->prepareStatement($sql); $statement->execute([$name]); - return $statement->fetchObject(Page::class); + return $statement->fetchObject(self::class); } }