Index: trunk/phase3/includes/Article.php |
— | — | @@ -848,6 +848,7 @@ |
849 | 849 | # Keep going until $outputDone is set, or we run out of things to do. |
850 | 850 | $pass = 0; |
851 | 851 | $outputDone = false; |
| 852 | + $this->mParserOutput = false; |
852 | 853 | while ( !$outputDone && ++$pass ) { |
853 | 854 | switch( $pass ) { |
854 | 855 | case 1: |
— | — | @@ -957,9 +958,11 @@ |
958 | 959 | } |
959 | 960 | |
960 | 961 | # Adjust the title if it was set by displaytitle, -{T|}- or language conversion |
961 | | - $titleText = $this->mParserOutput->getTitleText(); |
962 | | - if ( strval( $titleText ) !== '' ) { |
963 | | - $wgOut->setPageTitle( $titleText ); |
| 962 | + if ( $this->mParserOutput ) { |
| 963 | + $titleText = $this->mParserOutput->getTitleText(); |
| 964 | + if ( strval( $titleText ) !== '' ) { |
| 965 | + $wgOut->setPageTitle( $titleText ); |
| 966 | + } |
964 | 967 | } |
965 | 968 | |
966 | 969 | # Now that we've filled $this->mParserOutput, we know whether |