Add priority param to Module::provideSearchUrl()

refs #8668
This commit is contained in:
Eric Lippmann 2015-03-12 17:55:29 +01:00
parent 5749ff72b1
commit c1d5231619
1 changed files with 9 additions and 5 deletions

View File

@ -184,14 +184,18 @@ class Module
protected $searchUrls = array();
/**
* @param string $title
* @param string $url
* Provide a search URL
*
* @param string $title
* @param string $url
* @param int $priority
*/
public function provideSearchUrl($title, $url)
public function provideSearchUrl($title, $url, $priority = 0)
{
$searchUrl = (object) array(
'title' => $title,
'url' => $url
'title' => (string) $title,
'url' => (string) $url,
'priority' => (int) $priority
);
$this->searchUrls[] = $searchUrl;