Index: trunk/phase3/includes/Title.php |
— | — | @@ -869,19 +869,21 @@ |
870 | 870 | public function getLinkUrl( $query = array(), $variant = false ) { |
871 | 871 | wfProfileIn( __METHOD__ ); |
872 | 872 | if( !is_array( $query ) ) { |
| 873 | + wfProfileOut( __METHOD__ ); |
873 | 874 | throw new MWException( 'Title::getLinkUrl passed a non-array for '. |
874 | 875 | '$query' ); |
875 | 876 | } |
876 | 877 | if( $this->isExternal() ) { |
877 | | - return $this->getFullURL( $query ); |
| 878 | + $ret = $this->getFullURL( $query ); |
878 | 879 | } elseif( $this->getPrefixedText() === '' |
879 | 880 | and $this->getFragment() !== '' ) { |
880 | | - return $this->getFragmentForURL(); |
| 881 | + $ret = $this->getFragmentForURL(); |
881 | 882 | } else { |
882 | | - return $this->getLocalURL( $query, $variant ) |
| 883 | + $ret = $this->getLocalURL( $query, $variant ) |
883 | 884 | . $this->getFragmentForURL(); |
884 | 885 | } |
885 | 886 | wfProfileOut( __METHOD__ ); |
| 887 | + return $ret; |
886 | 888 | } |
887 | 889 | |
888 | 890 | /** |