Merge "Include additional analytics in Special:Search"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 28 Sep 2015 22:31:01 +0000 (22:31 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 28 Sep 2015 22:31:01 +0000 (22:31 +0000)
1  2 
includes/specials/SpecialSearch.php

@@@ -686,12 -692,13 +689,13 @@@ class SpecialSearch extends SpecialPag
  
                $link = Linker::linkKnown(
                        $link_t,
-                       $titleSnippet
+                       $titleSnippet,
+                       array( 'data-serp-pos' => $position ) // HTML attributes
                );
  
 -              //If page content is not readable, just return the title.
 -              //This is not quite safe, but better than showing excerpts from non-readable pages
 -              //Note that hiding the entry entirely would screw up paging.
 +              // If page content is not readable, just return the title.
 +              // This is not quite safe, but better than showing excerpts from non-readable pages
 +              // Note that hiding the entry entirely would screw up paging.
                if ( !$title->userCan( 'read', $this->getUser() ) ) {
                        return "<li>{$link}</li>\n";
                }