Closed tamarazuk closed 9 years ago
Thanks for the report @tamarazuk! At some point, I think this prevented the argument from being passed to the PHP script. I'm not sure if something changed or if it really just never worked.
I imagine getting rid of that argument shifting hocus pocus in grunt-add-textdomain.php should fix this up, though.
@bradyvercher Thanks for the quick reply :beers:
The task is always passing the second argument (but it's an empty string when we're doing a dry run) whereas the grunt-add-textdomain.php assumes the command was run in the shell so the argument might not exist. So I agree, removing the shifting hocus pocus and adjusting the indexes should fix it. Alternatively, moving the array_shift()
here outside of the if
can work too.
Hey @tamarazuk, if you can let me know if that commit fixes your issue, I'll go ahead and push out a new release.
@bradyvercher looks like that fixed it :smile_cat: Thanks!
Just pushed this out in v0.5.3. Thanks again! :beers:
When I try using dry run with the
addtextdomain
task I see a bunch offailed to open stream
errors and don't see the expected changes:When dry run is used it looks like arguments are shifted and the domain gets passed here instead of the filepath