r111178 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r111177‎ | r111178 | r111179 >
Date:19:00, 10 February 2012
Author:werdna
Status:ok
Tags:
Comment:
(bug 32040) Set noindex, nofollow on LQT talkpage history pages. Patch by Khaled El Mansoury, with formatting tweaks.
Modified paths:
  • /trunk/extensions/LiquidThreads/pages/TalkpageHistoryView.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LiquidThreads/pages/TalkpageHistoryView.php
@@ -74,10 +74,11 @@
7575 }
7676
7777 function formatValue( $name, $value ) {
78 - global $wgLang, $wgContLang;
79 -
 78+ global $wgLang, $wgContLang, $wgOut;
8079 static $linker = null;
8180
 81+ $wgOut->setRobotPolicy('noindex, nofollow');
 82+
8283 if ( empty( $linker ) ) {
8384 $linker = class_exists( 'DummyLinker' ) ? new DummyLinker() : new Linker();
8485 }

Status & tagging log