From d7acfe079fea072ca5092ff48ad1588442a646e6 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Fri, 14 Feb 2014 15:21:12 +0100 Subject: [PATCH] Show 'Indexing by robots' status correct on action=info When $wgNamespaceRobotPolicies contains a noindex for a namespace and the page contains __INDEX__, the index status on action=info was "Disallowed", but that is wrong, because the page is indexed. Pass the 'index' to the robot policy logic. Change-Id: Ib77c3e73968cdc72f657e50371a2372564a1c618 --- includes/actions/InfoAction.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/actions/InfoAction.php b/includes/actions/InfoAction.php index 918fc9ed15..63f3151816 100644 --- a/includes/actions/InfoAction.php +++ b/includes/actions/InfoAction.php @@ -289,6 +289,9 @@ class InfoAction extends FormlessAction { if ( isset( $pageProperties['noindex'] ) ) { $pOutput->setIndexPolicy( 'noindex' ); } + if ( isset( $pageProperties['index'] ) ) { + $pOutput->setIndexPolicy( 'index' ); + } // Use robot policy logic $policy = $this->page->getRobotPolicy( 'view', $pOutput ); -- 2.20.1