protected function addAttributes(ChangeText $txt, array $attributes) { if (array_key_exists('href', $attributes)) { $txt->addHtml(' with destination ' . htmlspecialchars($attributes['href'])); unset($attributes['href']); } parent::addAttributes($txt, $attributes); }
protected function addAttributes(ChangeText $txt, array $attributes) { if (array_key_exists('href', $attributes)) { $txt->addHtml(' ' . wfMsgExt('diff-withdestination', 'parseinline', htmlspecialchars($attributes['href']))); unset($attributes['href']); } parent::addAttributes($txt, $attributes); }