[search] Don't show the create link twice on results page
authorErik Bernhardson <ebernhardson@wikimedia.org>
Mon, 7 Nov 2016 21:49:09 +0000 (13:49 -0800)
committerErik Bernhardson <ebernhardson@wikimedia.org>
Mon, 7 Nov 2016 22:00:21 +0000 (14:00 -0800)
commit1cf9404ffcae35d0b7542f1248383ca188ad4a5e
tree9935c887060563bc98e3d9fc0a12f48799701526
parent53779578b44575ef91feb3fad488f09b52f737d7
[search] Don't show the create link twice on results page

Due to how things flow through the rendering if an offset is provided
and there are no results, SpecialSearch::showCreateLink gets run twice
and the user gets an odd output.

Bug: T149269
Change-Id: Ifed921207f82cc0d1c1cb621a81127486d4dd03e
includes/specials/SpecialSearch.php