User::getDefaultOptions duplicate call
authorAntoine Musso <hashar@free.fr>
Thu, 23 May 2013 14:17:15 +0000 (16:17 +0200)
committerAntoine Musso <hashar@free.fr>
Thu, 23 May 2013 14:17:33 +0000 (16:17 +0200)
commit95712b4a5cde2486274866b02d3a5ed35e31aeee
tree3d9793edf8c0c1863824d260c371b787c6d9e94b
parent1d660b4c47a84cf793da6fbb2441599843b755bd
User::getDefaultOptions duplicate call

The User::getDefaultOptions() has to set up the 'language' and 'variant'
language. That was done using two calls of $wgContLang->getCode().

This patch reduce it to one call.

Change-Id: I0a30f2541e35c115d1cda72ce40d5e3dcd405c5b
includes/User.php