Skip to content

Commit

Permalink
Minor code style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Anderson Grudtner Martins committed Mar 18, 2015
1 parent 6cb100c commit fa5e7be
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/extensions/plg_xmap_com_virtuemart/com_virtuemart.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ public static function getTree($xmap, $parent, &$params)
$include_products = JArrayHelper::getValue($params, 'include_products', 1);
$include_products = (
$include_products == 1
|| ( $include_products == 2 && $xmap->view == 'xml')
|| ( $include_products == 3 && $xmap->view == 'html')
|| ($include_products == 2 && $xmap->view == 'xml')
|| ($include_products == 3 && $xmap->view == 'html')
);

$params['include_products'] = $include_products;
Expand Down Expand Up @@ -149,8 +149,7 @@ public static function getCategoryTree($xmap, $parent, &$params, $catid=0)
$vendorId = 1;
$cache = JFactory::getCache('com_virtuemart','callback');

// var_dump($vendorId, $catid); die();
$children = $cache->call( array( 'VirtueMartModelCategory', 'getChildCategoryList' ), $vendorId, $catid);
$children = $cache->call(array('VirtueMartModelCategory', 'getChildCategoryList'), $vendorId, $catid);

$xmap->changeLevel(1);

Expand Down Expand Up @@ -227,7 +226,7 @@ protected static function initialize()

$app = JFactory::getApplication();

if (!class_exists( 'VmConfig' )) {
if (!class_exists('VmConfig')) {
require JPATH_ADMINISTRATOR . '/components/com_virtuemart/helpers/config.php';

VmConfig::loadConfig();
Expand Down

0 comments on commit fa5e7be

Please sign in to comment.