Wikia/app — pull request #1258 by relwell (2013-08-05 17:39:22+00:00)
Title: PLA-523 -- fix cross-wiki PTT w.r.t language code and results found

This update handles two current problems with cross-wiki PTT:

1) If a wiki does not have the wgLanguageCode variable set, then the wiki is ignored. We're changing the language matching to only work if the wiki has a value for this variable. Otherwise, ignore the condition, and add it as a PTT match.

2) Cross-wiki PTT is not shown if there are no other results found. So in cases where the wiki is not mentioned at all in community, that wiki cannot currently be found, even if the language is set. To address this, we increment the number of results found when the cross-wiki match is registered with the view.

This change will also need to be merged to dev and release-182.