From: Marcel Werk Date: Tue, 28 Jun 2016 20:52:02 +0000 (+0200) Subject: Added missing 'allowSpidersToIndexThisPage' value X-Git-Tag: 3.0.0_Beta_1~1323 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=32735f7884176893fc272e50986151d2bb28c54b;p=GitHub%2FWoltLab%2FWCF.git Added missing 'allowSpidersToIndexThisPage' value --- diff --git a/wcfsetup/install/files/lib/page/ArticleListPage.class.php b/wcfsetup/install/files/lib/page/ArticleListPage.class.php index c7ef376f0e..8d174d0cc9 100644 --- a/wcfsetup/install/files/lib/page/ArticleListPage.class.php +++ b/wcfsetup/install/files/lib/page/ArticleListPage.class.php @@ -2,6 +2,7 @@ namespace wcf\page; use wcf\data\article\AccessibleArticleList; use wcf\system\request\LinkHandler; +use wcf\system\WCF; /** * Shows a list of cms articles. @@ -41,4 +42,15 @@ class ArticleListPage extends MultipleLinkPage { $this->canonicalURL = LinkHandler::getInstance()->getLink('ArticleList', [], ($this->pageNo > 1 ? 'pageNo=' . $this->pageNo : '')); } + + /** + * @inheritDoc + */ + public function assignVariables() { + parent::assignVariables(); + + WCF::getTPL()->assign([ + 'allowSpidersToIndexThisPage' => true + ]); + } } diff --git a/wcfsetup/install/files/lib/page/ArticlePage.class.php b/wcfsetup/install/files/lib/page/ArticlePage.class.php index 9ff432749b..4201e15a96 100644 --- a/wcfsetup/install/files/lib/page/ArticlePage.class.php +++ b/wcfsetup/install/files/lib/page/ArticlePage.class.php @@ -139,7 +139,8 @@ class ArticlePage extends AbstractArticlePage { 'commentObjectTypeID' => $this->commentObjectTypeID, 'lastCommentTime' => ($this->commentList ? $this->commentList->getMinCommentTime() : 0), 'likeData' => ((MODULE_LIKE && $this->commentList) ? $this->commentList->getLikeData() : []), - 'articleLikeData' => $this->articleLikeData + 'articleLikeData' => $this->articleLikeData, + 'allowSpidersToIndexThisPage' => true ]); } } diff --git a/wcfsetup/install/files/lib/page/CategoryArticleListPage.class.php b/wcfsetup/install/files/lib/page/CategoryArticleListPage.class.php index ff435a5940..8a2be6c600 100644 --- a/wcfsetup/install/files/lib/page/CategoryArticleListPage.class.php +++ b/wcfsetup/install/files/lib/page/CategoryArticleListPage.class.php @@ -87,7 +87,8 @@ class CategoryArticleListPage extends ArticleListPage { WCF::getTPL()->assign([ 'categoryID' => $this->categoryID, - 'category' => $this->category + 'category' => $this->category, + 'allowSpidersToIndexThisPage' => true ]); } -} +} \ No newline at end of file diff --git a/wcfsetup/install/files/lib/page/CmsPage.class.php b/wcfsetup/install/files/lib/page/CmsPage.class.php index 14192d4ef3..80f2e28f67 100644 --- a/wcfsetup/install/files/lib/page/CmsPage.class.php +++ b/wcfsetup/install/files/lib/page/CmsPage.class.php @@ -92,7 +92,8 @@ class CmsPage extends AbstractPage { 'contentLanguageID' => $this->languageID, 'page' => $this->page, 'pageID' => $this->pageID, - 'activePageLanguage' => ($this->languageID ? LanguageFactory::getInstance()->getLanguage($this->languageID) : null) + 'activePageLanguage' => ($this->languageID ? LanguageFactory::getInstance()->getLanguage($this->languageID) : null), + 'allowSpidersToIndexThisPage' => true ]); } }