-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Aliasing of attributes missing #31
Comments
All of the field names changed, check out FilterAbstract to see what they should be. |
Hi Miles, checked it and think it was map attributes which seems not be working correctly. For example you've got the following configuration for a url tag. ...
'attributes' => array(
'target' => '/self|new/i'
),
'mapAttributes' => array(
't' => 'target'
),
... and the string looks as following: Reason is that in line 1016 in decoda.php only the source is checked for the key without consideration of the mapping. Do you see it as possible to bring back this behaviour? |
I think the problem is that this line should be $finalKey instead of $key. The code is pretty much the same thing as it was before. https://github.com/milesj/php-decoda/blob/master/Decoda.php#L1016 |
Tried it but then you get a problem with the url tag and the mapping of default to href. |
Ok, check out the latest master commit. This should fix it. It still uses mapAttributes. |
Thanks works fine :) |
Hi Miles,
I've got one question. In the newest version of decoda. I miss the possibility to alias a attribute. Is there a specific reason why it is removed?
Kind regards
Sean
The text was updated successfully, but these errors were encountered: