Using proper class name resolution
authorAlexander Ebert <ebert@woltlab.com>
Fri, 4 Dec 2015 13:25:12 +0000 (14:25 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 4 Dec 2015 13:25:12 +0000 (14:25 +0100)
wcfsetup/install/files/lib/data/page/Page.class.php

index 6b185b86635e57075fef8ad12525346911ee6aa0..4bdab514fa4c53a980b7a14dec54b01d13049220 100644 (file)
@@ -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);
        }
 }