* @return String like ' alt="yyyy"' or ' title="yyyy"'
*/
protected function captionConvert( $matches ) {
- // TODO: cache the preferred variant in every autoConvert() process,
- // this helps improve performance in a way.
+ // TODO: cache the preferred variant in every autoConvert() process,
+ // this helps improve performance in a way.
$toVariant = $this->getPreferredVariant();
$title = $matches[1];
$text = $matches[2];
if ( !$toVariant ) {
$toVariant = $this->getPreferredVariant();
if ( !$toVariant ) {
+ wfProfileOut( __METHOD__ );
return $text;
}
}