Thread:Project:Support desk/Auto suggest not working/reply (5)

Ah, it looks like the issue is that some PHP 5.3 code is in this version.

$text = preg_replace_callback( '##', function ( $matches ) use ( &$masked ) {			$sha = sha1( $matches[0] );			$masked[$sha] = $matches[0];			return "<$sha>";		}, $text );

PHP Parse error: syntax error, unexpected T_FUNCTION in {path}/wiki/includes/api/ApiFormatBase.php on line 279

How can I rewrite this for my PHP version? "use" is 5.3-specific.