|
@@ 3971-3974 (lines=4) @@
|
| 3968 |
|
# (bug 8068) Allow control over whether robots index a page. |
| 3969 |
|
# @todo FIXME: Bug 14899: __INDEX__ always overrides __NOINDEX__ here! This |
| 3970 |
|
# is not desirable, the last one on the page should win. |
| 3971 |
|
if ( isset( $this->mDoubleUnderscores['noindex'] ) && $this->mTitle->canUseNoindex() ) { |
| 3972 |
|
$this->mOutput->setIndexPolicy( 'noindex' ); |
| 3973 |
|
$this->addTrackingCategory( 'noindex-category' ); |
| 3974 |
|
} |
| 3975 |
|
if ( isset( $this->mDoubleUnderscores['index'] ) && $this->mTitle->canUseNoindex() ) { |
| 3976 |
|
$this->mOutput->setIndexPolicy( 'index' ); |
| 3977 |
|
$this->addTrackingCategory( 'index-category' ); |
|
@@ 3975-3978 (lines=4) @@
|
| 3972 |
|
$this->mOutput->setIndexPolicy( 'noindex' ); |
| 3973 |
|
$this->addTrackingCategory( 'noindex-category' ); |
| 3974 |
|
} |
| 3975 |
|
if ( isset( $this->mDoubleUnderscores['index'] ) && $this->mTitle->canUseNoindex() ) { |
| 3976 |
|
$this->mOutput->setIndexPolicy( 'index' ); |
| 3977 |
|
$this->addTrackingCategory( 'index-category' ); |
| 3978 |
|
} |
| 3979 |
|
|
| 3980 |
|
# Cache all double underscores in the database |
| 3981 |
|
foreach ( $this->mDoubleUnderscores as $key => $val ) { |