use wcf\data\category\CategoryList;
use wcf\data\object\type\ObjectTypeCache;
use wcf\data\DatabaseObject;
+use wcf\data\page\PageCache;
/**
* Article category sitemap implementation.
* @inheritDoc
*/
public function isAvailableType() {
- return MODULE_ARTICLE;
+ return MODULE_ARTICLE && PageCache::getInstance()->getPageByIdentifier('com.woltlab.wcf.CategoryArticleList')->allowSpidersToIndex;
}
}
namespace wcf\system\sitemap\object;
use wcf\data\article\content\ArticleContent;
use wcf\data\DatabaseObject;
+use wcf\data\page\PageCache;
/**
* Article sitemap implementation.
* @inheritDoc
*/
public function isAvailableType() {
- return MODULE_ARTICLE;
+ return MODULE_ARTICLE && PageCache::getInstance()->getPageByIdentifier('com.woltlab.wcf.User')->allowSpidersToIndex;
}
}
<?php
namespace wcf\system\sitemap\object;
+use wcf\data\page\PageCache;
use wcf\data\user\User;
use wcf\system\WCF;
* @inheritDoc
*/
public function isAvailableType() {
- return WCF::getSession()->getPermission('user.profile.canViewUserProfile');
+ return WCF::getSession()->getPermission('user.profile.canViewUserProfile') && PageCache::getInstance()->getPageByIdentifier('com.woltlab.wcf.Article')->allowSpidersToIndex;
}
}