From: umherirrender Date: Sat, 23 Nov 2013 17:54:17 +0000 (+0100) Subject: Move functions to better place in Special:Search X-Git-Tag: 1.31.0-rc.0~17620 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=0e0550a1ad503d398fc9186d0f333916fcb73728;p=lhc%2Fweb%2Fwiklou.git Move functions to better place in Special:Search The function direct behind the variable definition is not the prefer place. Change-Id: I9183e1f1af22644a4f811657fbf2245a11b48854 --- 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