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:
@ -42,6 +42,8 @@ class ###Component###View###Views### extends JViewLegacy
|
||||
$this->listOrder = $this->escape($this->state->get('list.ordering'));
|
||||
$this->listDirn = $this->escape($this->state->get('list.direction'));
|
||||
$this->saveOrder = $this->listOrder == 'ordering';
|
||||
// set the return here value
|
||||
$this->return_here = urlencode(base64_encode((string) JUri::getInstance()));
|
||||
// get global action permissions
|
||||
$this->canDo = ###Component###Helper::getActions('###view###');###JVIEWLISTCANDO###
|
||||
|
||||
|
@ -108,8 +108,8 @@ abstract class ###Component###HelperRoute
|
||||
}
|
||||
}
|
||||
return $link;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
protected static function _findItem($needles = null,$type = null)
|
||||
{
|
||||
$app = JFactory::getApplication();
|
||||
@ -157,6 +157,10 @@ abstract class ###Component###HelperRoute
|
||||
self::$lookup[$language][$view][$item->query['id']] = $item->id;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
self::$lookup[$language][$view][0] = $item->id;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -167,17 +171,24 @@ abstract class ###Component###HelperRoute
|
||||
{
|
||||
if (isset(self::$lookup[$language][$view]))
|
||||
{
|
||||
foreach ($ids as $id)
|
||||
if (###Component###Helper::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