$article = $this->initializeArticle();
if ( is_object( $article ) ) {
$pageView = true;
+ /**
+ * $wgArticle is deprecated, do not use it.
+ * @deprecated since 1.18
+ */
+ global $wgArticle;
+ $wgArticle = new DeprecatedGlobal( 'wgArticle', $article, '1.18' );
+
$this->performAction( $article );
} elseif ( is_string( $article ) ) {
$output->redirect( $article );