From d3f2b9a2c51643616ef34ba0697af16694cf7185 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sun, 25 Jul 2010 20:52:30 +0000 Subject: [PATCH] Article:: to self:: --- includes/CategoryPage.php | 4 ++-- includes/ImagePage.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/CategoryPage.php b/includes/CategoryPage.php index 447a141207..c614a279fd 100644 --- a/includes/CategoryPage.php +++ b/includes/CategoryPage.php @@ -18,7 +18,7 @@ class CategoryPage extends Article { $diffOnly = $wgRequest->getBool( 'diffonly', $wgUser->getOption( 'diffonly' ) ); if ( isset( $diff ) && $diffOnly ) - return Article::view(); + return parent::view(); if ( !wfRunHooks( 'CategoryPageView', array( &$this ) ) ) return; @@ -27,7 +27,7 @@ class CategoryPage extends Article { $this->openShowCategory(); } - Article::view(); + parent::view(); if ( NS_CATEGORY == $this->mTitle->getNamespace() ) { $this->closeShowCategory(); diff --git a/includes/ImagePage.php b/includes/ImagePage.php index c278070f33..3c778d37a7 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -66,7 +66,7 @@ class ImagePage extends Article { $diffOnly = $wgRequest->getBool( 'diffonly', $wgUser->getOption( 'diffonly' ) ); if ( $this->mTitle->getNamespace() != NS_FILE || ( isset( $diff ) && $diffOnly ) ) { - return Article::view(); + return parent::view(); } $this->loadFile(); @@ -76,7 +76,7 @@ class ImagePage extends Article { // mTitle is the same as the redirect target so ask Article // to perform the redirect for us. $wgRequest->setVal( 'diffonly', 'true' ); - return Article::view(); + return parent::view(); } else { // mTitle is not the same as the redirect target so it is // probably the redirect page itself. Fake the redirect symbol @@ -106,7 +106,7 @@ class ImagePage extends Article { # No need to display noarticletext, we use our own message, output in openShowImage() if ( $this->getID() ) { - Article::view(); + parent::view(); } else { # Just need to set the right headers $wgOut->setArticleFlag( true ); -- 2.20.1