From fa315edbb44a49e697a862c9e0e3e9c378807eec Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 21 Aug 2008 03:05:25 +0000 Subject: [PATCH] minor code tweaks --- includes/Wiki.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/includes/Wiki.php b/includes/Wiki.php index 3ef9681eae..101ba7f2b4 100644 --- a/includes/Wiki.php +++ b/includes/Wiki.php @@ -252,12 +252,12 @@ class MediaWiki { } switch( $title->getNamespace() ) { - case NS_IMAGE: - return new ImagePage( $title ); - case NS_CATEGORY: - return new CategoryPage( $title ); - default: - return new Article( $title ); + case NS_IMAGE: + return new ImagePage( $title ); + case NS_CATEGORY: + return new CategoryPage( $title ); + default: + return new Article( $title ); } } @@ -275,8 +275,6 @@ class MediaWiki { $action = $this->getVal( 'action' ); $article = self::articleFromTitle( $title ); - wfDebug("Article: ".$title->getPrefixedText()."\n"); - // Namespace might change when using redirects // Check for redirects ... $file = $title->getNamespace() == NS_IMAGE ? $article->getFile() : null; -- 2.20.1