Use anonymous function in Linker::formatAutocomments/formatLinksInComment
authorumherirrender <umherirrender_de.wp@web.de>
Fri, 16 May 2014 19:16:09 +0000 (21:16 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Tue, 10 Jun 2014 20:32:23 +0000 (20:32 +0000)
commitb4cfdb9dd91ae4cb4701ba1aa6410221c483a072
treef2ee9a2dd0f894bc48c6793bfed41cd3c44ffed0
parente16a4a940bd69e7abf9cd78277a817c959a6f1e2
Use anonymous function in Linker::formatAutocomments/formatLinksInComment

A anonym function has no own scope, so it is not possible to call the
private callback, so moved the code of the callback into the function.

This avoids passing parameters with static variables to the callback.

Change-Id: I41ad85545301f6699817135b7e8ceba0f8b26851
includes/Linker.php