Index: trunk/phase3/includes/ImagePage.php |
— | — | @@ -105,7 +105,6 @@ |
106 | 106 | } else { |
107 | 107 | # Just need to set the right headers |
108 | 108 | $wgOut->setArticleFlag( true ); |
109 | | - $wgOut->setRobotPolicy( 'noindex,nofollow' ); |
110 | 109 | $wgOut->setPageTitle( $this->mTitle->getPrefixedText() ); |
111 | 110 | $this->viewUpdates(); |
112 | 111 | } |
— | — | @@ -469,6 +468,7 @@ |
470 | 469 | $title = SpecialPage::getTitleFor( 'Upload' ); |
471 | 470 | $link = $sk->makeKnownLinkObj($title, wfMsgHtml('noimage-linktext'), |
472 | 471 | 'wpDestFile=' . urlencode( $this->displayImg->getName() ) ); |
| 472 | + $wgOut->setRobotPolicy( 'noindex,nofollow' ); |
473 | 473 | $wgOut->addHTML( wfMsgWikiHtml( 'noimage', $link ) ); |
474 | 474 | } |
475 | 475 | } |