From 0e0550a1ad503d398fc9186d0f333916fcb73728 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Sat, 23 Nov 2013 18:54:17 +0100 Subject: [PATCH] Move functions to better place in Special:Search The function direct behind the variable definition is not the prefer place. Change-Id: I9183e1f1af22644a4f811657fbf2245a11b48854 --- includes/specials/SpecialSearch.php | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/includes/specials/SpecialSearch.php b/includes/specials/SpecialSearch.php index 3d23884548..b6b219f117 100644 --- a/includes/specials/SpecialSearch.php +++ b/includes/specials/SpecialSearch.php @@ -37,7 +37,6 @@ class SpecialSearch extends SpecialPage { * null|string */ protected $profile; - function getProfile() { return $this->profile; } /// Search engine protected $searchEngine; @@ -60,7 +59,6 @@ class SpecialSearch extends SpecialPage { * @var array */ protected $namespaces; - function getNamespaces() { return $this->namespaces; } /** * @var bool @@ -1189,6 +1187,22 @@ class SpecialSearch extends SpecialPage { return $this->searchEngine; } + /** + * Current search profile. + * @return null|string + */ + function getProfile() { + return $this->profile; + } + + /** + * Current namespaces. + * @return array + */ + function getNamespaces() { + return $this->namespaces; + } + /** * Users of hook SpecialSearchSetupEngine can use this to * add more params to links to not lose selection when -- 2.20.1