|
@@ 3870-3873 (lines=4) @@
|
| 3867 |
|
# (bug 8068) Allow control over whether robots index a page. |
| 3868 |
|
# @todo FIXME: Bug 14899: __INDEX__ always overrides __NOINDEX__ here! This |
| 3869 |
|
# is not desirable, the last one on the page should win. |
| 3870 |
|
if ( isset( $this->mDoubleUnderscores['noindex'] ) && $this->mTitle->canUseNoindex() ) { |
| 3871 |
|
$this->mOutput->setIndexPolicy( 'noindex' ); |
| 3872 |
|
$this->addTrackingCategory( 'noindex-category' ); |
| 3873 |
|
} |
| 3874 |
|
if ( isset( $this->mDoubleUnderscores['index'] ) && $this->mTitle->canUseNoindex() ) { |
| 3875 |
|
$this->mOutput->setIndexPolicy( 'index' ); |
| 3876 |
|
$this->addTrackingCategory( 'index-category' ); |
|
@@ 3874-3877 (lines=4) @@
|
| 3871 |
|
$this->mOutput->setIndexPolicy( 'noindex' ); |
| 3872 |
|
$this->addTrackingCategory( 'noindex-category' ); |
| 3873 |
|
} |
| 3874 |
|
if ( isset( $this->mDoubleUnderscores['index'] ) && $this->mTitle->canUseNoindex() ) { |
| 3875 |
|
$this->mOutput->setIndexPolicy( 'index' ); |
| 3876 |
|
$this->addTrackingCategory( 'index-category' ); |
| 3877 |
|
} |
| 3878 |
|
|
| 3879 |
|
# Cache all double underscores in the database |
| 3880 |
|
foreach ( $this->mDoubleUnderscores as $key => $val ) { |