Conversation
|
I don't see how that change makes sense. No one is calling these callback functions with a second parameter. |
|
Sure. It's just matched as an undefined variable in validators. |
|
The change makes sense; |
|
What makes no sense here is to add a function parameter. This function is never going to receive a |
|
Put like that @michelf, I'm behind you. Something simple like this might be better. Although, it is important to note that encodeURLAttribute() is setting /**
* Parse URL callback
* @var string|null $text set by reference in encodeURLAttribute()
* @param array $matches
* @return string
*/
protected function _doAutoLinks_url_callback($matches) {
$text = null;
$url = $this->encodeURLAttribute($matches[1], $text);
$link = "<a href=\"$url\">$text</a>";
return $this->hashPart($link);
}@edgering does this make sense to you? |
|
Absolutely. Thank you. |
No description provided.