Skip to content

Commit

Permalink
Try to fix #40, the first issue, when weblinks is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
Anderson Grudtner Martins committed Mar 17, 2015
1 parent e633692 commit 6849128
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/extensions/plg_xmap_com_weblinks/com_weblinks.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ public function __construct()
{
self::$enabled = JComponentHelper::isEnabled('com_weblinks');

JLoader::register('WeblinksHelperRoute', JPATH_SITE . '/components/com_weblinks/helpers/route.php');
if (self::$enabled) {
JLoader::register('WeblinksHelperRoute', JPATH_SITE . '/components/com_weblinks/helpers/route.php');
}
}

public static function getTree(XmapDisplayer &$xmap, stdClass &$parent, array &$params)
Expand Down

0 comments on commit 6849128

Please sign in to comment.