From: umherirrender Date: Fri, 14 Feb 2014 14:21:12 +0000 (+0100) Subject: Show 'Indexing by robots' status correct on action=info X-Git-Tag: 1.31.0-rc.0~16913 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/message.php?a=commitdiff_plain;h=d7acfe079fea072ca5092ff48ad1588442a646e6;p=lhc%2Fweb%2Fwiklou.git 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 --- 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 );