Skip to content

Commit

Permalink
Add priority param to Module::provideSearchUrl()
Browse files Browse the repository at this point in the history
refs #8668
  • Loading branch information
lippserd committed Mar 12, 2015
1 parent 5749ff7 commit c1d5231
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions library/Icinga/Application/Modules/Module.php
Expand Up @@ -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;
Expand Down

0 comments on commit c1d5231

Please sign in to comment.