From: jenkins-bot Date: Mon, 28 Sep 2015 22:31:01 +0000 (+0000) Subject: Merge "Include additional analytics in Special:Search" X-Git-Tag: 1.31.0-rc.0~9694 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%2C%22id_auteur=%24connecte%22%29%20.%20%22?a=commitdiff_plain;h=4a883e2ec8dec91254b3232af298014121642d19;p=lhc%2Fweb%2Fwiklou.git Merge "Include additional analytics in Special:Search" --- 4a883e2ec8dec91254b3232af298014121642d19 diff --cc includes/specials/SpecialSearch.php index d741b60bb8,28769ecfc1..91e84e4dec --- a/includes/specials/SpecialSearch.php +++ b/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 "
  • {$link}
  • \n"; }