r60254 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60253‎ | r60254 | r60255 >
Date:07:24, 21 December 2009
Author:tstarling
Status:deferred
Tags:
Comment:
Merged r60253 from trunk
Modified paths:
  • /branches/wmf-deployment/extensions/intersection (modified) (history)
  • /branches/wmf-deployment/extensions/intersection/DynamicPageList.php (modified) (history)

Diff [purge]

Index: branches/wmf-deployment/extensions/intersection/DynamicPageList.php
@@ -87,6 +87,7 @@
8888 $iNamespace = 0;
8989
9090 $bShowCurId = false;
 91+ $bGoogleHack = false;
9192
9293 $bSuppressErrors = false;
9394 $bShowNamespace = true;
@@ -275,6 +276,13 @@
276277 else
277278 $bShowCurId = true;
278279 }
 280+ else if ('googlehack' == $sType)
 281+ {
 282+ if ('false' == $sArg)
 283+ $bGoogleHack = false;
 284+ else
 285+ $bGoogleHack = true;
 286+ }
279287 }
280288
281289 $iCatCount = count($aCategories);
@@ -446,6 +454,8 @@
447455 $query = array();
448456 if (true == $bShowCurId)
449457 $query['curid'] = intval($row->page_id);
 458+ if ($bGoogleHack)
 459+ $query['dpl_id'] = intval($row->page_id);
450460
451461 if (true == $bShowNamespace)
452462 $titleText = $title->getPrefixedText();
Property changes on: branches/wmf-deployment/extensions/intersection
___________________________________________________________________
Name: svn:mergeinfo
453463 - /branches/REL1_15/phase3/extensions/intersection:51646
/trunk/extensions/intersection:56151-57449
/trunk/phase3/extensions/intersection:56213,56215-56216,56218,56325,56334-56336,56338,56340,56343,56345,56347,56350,57541,57916,58151,58219,58633,58816
454464 + /branches/REL1_15/phase3/extensions/intersection:51646
/trunk/extensions/intersection:56151-57449,60253
/trunk/phase3/extensions/intersection:56213,56215-56216,56218,56325,56334-56336,56338,56340,56343,56345,56347,56350,57541,57916,58151,58219,58633,58816

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r60253Fix for bug 20818: To make google happy, set a dummy parameter (dpl_id) which...tstarling07:22, 21 December 2009

Status & tagging log