minor code tweaks
authorAaron Schulz <aaron@users.mediawiki.org>
Thu, 21 Aug 2008 03:05:25 +0000 (03:05 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Thu, 21 Aug 2008 03:05:25 +0000 (03:05 +0000)
includes/Wiki.php

index 3ef9681..101ba7f 100644 (file)
@@ -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;