Skip to content

Commit

Permalink
Fixes #40, avoiding a wsod when weblinks is installed and enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Anderson Grudtner Martins committed Mar 18, 2015
1 parent 6849128 commit 21c6ec9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/extensions/plg_xmap_com_weblinks/com_weblinks.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function __construct()
}
}

public static function getTree(XmapDisplayer &$xmap, stdClass &$parent, array &$params)
public static function getTree($xmap, $parent, &$params)
{
$uri = new JUri($parent->link);

Expand Down Expand Up @@ -91,7 +91,7 @@ public static function getTree(XmapDisplayer &$xmap, stdClass &$parent, array &$
}
}

private static function getCategoryTree(XmapDisplayer &$xmap, stdClass &$parent, array &$params, $parent_id)
private static function getCategoryTree(&$xmap, &$parent, &$params, $parent_id)
{
$db = JFactory::getDbo();

Expand Down Expand Up @@ -139,7 +139,7 @@ private static function getCategoryTree(XmapDisplayer &$xmap, stdClass &$parent,
$xmap->changeLevel(-1);
}

private static function getlinks(XmapDisplayer &$xmap, stdClass &$parent, array &$params, $catid)
private static function getlinks(&$xmap, &$parent, &$params, $catid)
{
self::getCategoryTree($xmap, $parent, $params, $catid);

Expand Down

0 comments on commit 21c6ec9

Please sign in to comment.