whitespace/style tweak
authorAaron Schulz <aaron@users.mediawiki.org>
Tue, 24 Feb 2009 00:03:33 +0000 (00:03 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Tue, 24 Feb 2009 00:03:33 +0000 (00:03 +0000)
includes/Title.php

index d9c19c0..8ae93fe 100644 (file)
@@ -875,12 +875,10 @@ class Title {
                }
                if( $this->isExternal() ) {
                        $ret = $this->getFullURL( $query );
-               } elseif( $this->getPrefixedText() === ''
-               and $this->getFragment() !== '' ) {
+               } elseif( $this->getPrefixedText() === '' && $this->getFragment() !== '' ) {
                        $ret = $this->getFragmentForURL();
                } else {
-                       $ret = $this->getLocalURL( $query, $variant )
-                               . $this->getFragmentForURL();
+                       $ret = $this->getLocalURL( $query, $variant ) . $this->getFragmentForURL();
                }
                wfProfileOut( __METHOD__ );
                return $ret;