fixed issue that caused some custom code not to export for a JCB packages if found in anther custom code area. Made some corrections to the router helper class. Added return_here value admin views to improve the return values in url redirection. Improved the open valid base64 method to make use of default string. Update many ajax calls to not use jsonp, and infact be more secure.
This commit is contained in:
@ -36,8 +36,10 @@ abstract class ComponentbuilderHelperRoute
|
||||
else
|
||||
{
|
||||
// Initialize the needel array.
|
||||
$needles = array();
|
||||
//Create the link but don't add the id.
|
||||
$needles = array(
|
||||
'api' => array()
|
||||
);
|
||||
// Create the link but don't add the id.
|
||||
$link = 'index.php?option=com_componentbuilder&view=api';
|
||||
}
|
||||
if ($catid > 1)
|
||||
@ -146,8 +148,8 @@ abstract class ComponentbuilderHelperRoute
|
||||
}
|
||||
}
|
||||
return $link;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
protected static function _findItem($needles = null,$type = null)
|
||||
{
|
||||
$app = JFactory::getApplication();
|
||||
@ -195,6 +197,10 @@ abstract class ComponentbuilderHelperRoute
|
||||
self::$lookup[$language][$view][$item->query['id']] = $item->id;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
self::$lookup[$language][$view][0] = $item->id;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -205,17 +211,24 @@ abstract class ComponentbuilderHelperRoute
|
||||
{
|
||||
if (isset(self::$lookup[$language][$view]))
|
||||
{
|
||||
foreach ($ids as $id)
|
||||
if (ComponentbuilderHelper::checkArray($ids))
|
||||
{
|
||||
if (isset(self::$lookup[$language][$view][(int) $id]))
|
||||
foreach ($ids as $id)
|
||||
{
|
||||
return self::$lookup[$language][$view][(int) $id];
|
||||
if (isset(self::$lookup[$language][$view][(int) $id]))
|
||||
{
|
||||
return self::$lookup[$language][$view][(int) $id];
|
||||
}
|
||||
}
|
||||
}
|
||||
elseif (isset(self::$lookup[$language][$view][0]))
|
||||
{
|
||||
return self::$lookup[$language][$view][0];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ($type)
|
||||
{
|
||||
// Check if the global menu item has been set.
|
||||
|
Reference in New Issue
Block a user