Fix c&p fault in identifier
authorjoshuaruesweg <ruesweg@woltlab.com>
Thu, 12 Mar 2020 14:40:16 +0000 (15:40 +0100)
committerjoshuaruesweg <ruesweg@woltlab.com>
Thu, 12 Mar 2020 14:40:16 +0000 (15:40 +0100)
wcfsetup/install/files/lib/system/sitemap/object/ArticleSitemapObject.class.php
wcfsetup/install/files/lib/system/sitemap/object/UserSitemapObject.class.php

index d0483222b9152dd88320c9ed1afac0eaf78b3181..706618bc8bacdb10f856b4f7ef0cdf61caffc568 100644 (file)
@@ -33,6 +33,6 @@ class ArticleSitemapObject extends AbstractSitemapObjectObjectType {
         * @inheritDoc
         */
        public function isAvailableType() {
-               return MODULE_ARTICLE && PageCache::getInstance()->getPageByIdentifier('com.woltlab.wcf.User')->allowSpidersToIndex;
+               return MODULE_ARTICLE && PageCache::getInstance()->getPageByIdentifier('com.woltlab.wcf.Article')->allowSpidersToIndex;
        }
 }
index ba24b5dbeb364a95504b28cf817908ff8a1d2b4c..3c1f965639b5f99836648cd6007bbdfc3c35395c 100755 (executable)
@@ -32,6 +32,6 @@ class UserSitemapObject extends AbstractSitemapObjectObjectType {
         * @inheritDoc
         */
        public function isAvailableType() {
-               return WCF::getSession()->getPermission('user.profile.canViewUserProfile') && PageCache::getInstance()->getPageByIdentifier('com.woltlab.wcf.Article')->allowSpidersToIndex;
+               return WCF::getSession()->getPermission('user.profile.canViewUserProfile') && PageCache::getInstance()->getPageByIdentifier('com.woltlab.wcf.User')->allowSpidersToIndex;
        }
 }