From 32735f7884176893fc272e50986151d2bb28c54b Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 28 Jun 2016 22:52:02 +0200 Subject: [PATCH] Added missing 'allowSpidersToIndexThisPage' value --- .../install/files/lib/page/ArticleListPage.class.php | 12 ++++++++++++ .../install/files/lib/page/ArticlePage.class.php | 3 ++- .../files/lib/page/CategoryArticleListPage.class.php | 5 +++-- wcfsetup/install/files/lib/page/CmsPage.class.php | 3 ++- 4 files changed, 19 insertions(+), 4 deletions(-) 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 ]); } } -- 2.20.1