Added missing 'allowSpidersToIndexThisPage' value
authorMarcel Werk <burntime@woltlab.com>
Tue, 28 Jun 2016 20:52:02 +0000 (22:52 +0200)
committerMarcel Werk <burntime@woltlab.com>
Tue, 28 Jun 2016 20:52:02 +0000 (22:52 +0200)
wcfsetup/install/files/lib/page/ArticleListPage.class.php
wcfsetup/install/files/lib/page/ArticlePage.class.php
wcfsetup/install/files/lib/page/CategoryArticleListPage.class.php
wcfsetup/install/files/lib/page/CmsPage.class.php

index c7ef376f0e27f287d523cab41fc57490e60a94f5..8d174d0cc904636d1d28fd3250c9905b4f295516 100644 (file)
@@ -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
+               ]);
+       }
 }
index 9ff432749b913a32ce6c4b6e7332258eef3d7740..4201e15a96022845500cbf1be5fbc9162997d32a 100644 (file)
@@ -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
                ]);
        }
 }
index ff435a5940ccbbc2f319105f5386fa2c83eecd6c..8a2be6c6005c246e9a75bcde1573257b8602a10a 100644 (file)
@@ -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
index 14192d4ef31d538278a60a1f66304a95e5a41814..80f2e28f67988332c5b6905f02058539bb790d5c 100644 (file)
@@ -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
                ]);
        }
 }