ok, you should know those are parameters from the menu item not the category AND I put only the ones with values ... in my case we're talking of 5/6 more values in the array.
BTW I appreciate your suggestions but let me understand this:
Why did you use this method if the itemid is enough? [line 1066 circa]
Code:
if ($menu) foreach($menu->query as $_varname => $_ignore) $safeurlparams[$_varname] = 'STRING';
I just used a solution "similar" to the solutions used before by the original developer, that's why I didn't search the cause of the itemid wasn't working.
[BTW the common developer use of the diplay method is to pass the parameters of the component, like you did with only a few of them, not the itemid... ]
ANYWAY:
It work with also this:
Code:
if ($menu) $safeurlparams[(string)$menu->id]='STRING';
instead my previous solution.
And this makes me ask why I shouldn't comment the original code and user something like this:
Code:
else {
$safeurlparams = array();
$menu = JFactory::getApplication()->getMenu()->getActive();
// if ($menu) foreach($menu->query as $_varname => $_ignore) $safeurlparams[$_varname] = 'STRING';
if ($menu) $safeurlparams[(string)$menu->id]='STRING';
// Add any existing URL variables (=submitted via GET), ... we only need variable names, (so can use them unfiltered)
foreach($_GET as $_varname => $_ignore) $safeurlparams[$_varname] = 'STRING';
}
All my questions , my topics and comments are here only for learning purpose and my love of the "open source community"... I'm not here to bug anyone...