Skip to content

Commit

Permalink
[4.0] Fix contacts view (#25576)
Browse files Browse the repository at this point in the history
  • Loading branch information
SharkyKZ authored and wilsonge committed Jul 23, 2019
1 parent b8a725a commit f63670e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,8 @@ public function association($contactid)
*
* @since 1.6
*/
public function featured($value = 0, $i = 0, $canChange = true)
public function featured($value, $i, $canChange = true)
{
if ($i === 0)
{
throw new \InvalidArgumentException('$i is not allowed to be 0');
}

// Array of image, task, title, action
$states = array(
0 => array('unfeatured', 'contacts.featured', 'COM_CONTACT_UNFEATURED', 'JGLOBAL_TOGGLE_FEATURED'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,8 @@ public function association($articleid)
*
* @return string HTML code
*/
public function featured($value = 0, $i = 0, $canChange = true)
public function featured($value, $i, $canChange = true)
{
if ($i === 0)
{
throw new \InvalidArgumentException('$i is not allowed to be 0');
}

// Array of image, task, title, action
$states = array(
0 => array('unfeatured', 'articles.featured', 'COM_CONTENT_UNFEATURED', 'JGLOBAL_TOGGLE_FEATURED'),
Expand Down

0 comments on commit f63670e

Please sign in to comment.