Cache the result of User::getDefaultOptions
authorMarius Hoch <hoo@online.de>
Mon, 29 Oct 2012 00:21:20 +0000 (01:21 +0100)
committerMarius Hoch <hoo@online.de>
Mon, 29 Oct 2012 00:47:17 +0000 (01:47 +0100)
commitadf6e8fcdd56c5ab76fb757630f0e772ec2853c5
treec8219865b55cc53bf7c9b73b40a4d61c4910996c
parent4c56eb3626209c343df77d9d68013e3ae2ae209f
Cache the result of User::getDefaultOptions

Caching the result of User::getDefaultOptions as it always returns
the same data, despite for unit tests, which can't use the cached
values as they do evil things with variables being constant in normal
operation.

Change-Id: I02d557006d2f879e7ce510a5e47fa1543baab8a6
includes/User.php