r60253 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r60252
|
r60253
|
r60254
>
Date:
07:22, 21 December 2009
Author:
tstarling
Status:
deferred
Tags:
Comment:
Fix for
bug 20818
: To make google happy, set a dummy parameter (dpl_id) which does nothing, instead of setting curid which, among other things, suppresses bots.
Modified paths:
/trunk/extensions/intersection/DynamicPageList.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/extensions/intersection/DynamicPageList.php
—
—
@@ -87,6 +87,7 @@
88
88
$iNamespace = 0;
89
89
90
90
$bShowCurId = false;
91
+ $bGoogleHack = false;
91
92
92
93
$bSuppressErrors = false;
93
94
$bShowNamespace = true;
—
—
@@ -275,6 +276,13 @@
276
277
else
277
278
$bShowCurId = true;
278
279
}
280
+ else if ('googlehack' == $sType)
281
+ {
282
+ if ('false' == $sArg)
283
+ $bGoogleHack = false;
284
+ else
285
+ $bGoogleHack = true;
286
+ }
279
287
}
280
288
281
289
$iCatCount = count($aCategories);
—
—
@@ -446,6 +454,8 @@
447
455
$query = array();
448
456
if (true == $bShowCurId)
449
457
$query['curid'] = intval($row->page_id);
458
+ if ($bGoogleHack)
459
+ $query['dpl_id'] = intval($row->page_id);
450
460
451
461
if (true == $bShowNamespace)
452
462
$titleText = $title->getPrefixedText();
Follow-up revisions
Revision
Commit summary
Author
Date
r60254
Merged
r60253
from trunk
tstarling
07:24, 21 December 2009
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r60172
Added GNSM extension, posted by Amgine as
bug 20818
attachment. Not ready for...
maxsem
20:01, 17 December 2009
Status & tagging log
07:06, 12 January 2010
Tim Starling
(
talk
|
contribs
)
changed the
status
of r60253
[
removed:
new
added:
deferred]