<?php
+declare(strict_types=1);
namespace wcf\page;
use wcf\data\article\category\ArticleCategory;
use wcf\data\article\content\ViewableArticleContent;
* Abstract implementation of the article page.
*
* @author Marcel Werk
- * @copyright 2001-2017 WoltLab GmbH
+ * @copyright 2001-2018 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Page
* @since 3.0
if ($this->articleContent === null) {
throw new IllegalLinkException();
}
+
+ // check if the language has been disabled
+ if ($this->articleContent->languageID && LanguageFactory::getInstance()->getLanguage($this->articleContent->languageID) === null) {
+ throw new IllegalLinkException();
+ }
+
$this->article = ViewableArticle::getArticle($this->articleContent->articleID, false);
$this->category = $this->article->getCategory();