diff options
| author | Jano Slota <jano@alokal.eu> | 2014-07-03 02:55:33 +0200 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2014-07-06 01:27:38 +0200 |
| commit | 4adf893c3906bebb29fc1720793366291da87b58 (patch) | |
| tree | caab14b337e75132f110bfb973ab2a80d6e73a04 /inc/functions.php | |
| parent | 7b339f7f56d2d4fdbddceef385d874cb3cf936d1 (diff) | |
Random names for anonymous users - thanks to svnth
Diffstat (limited to 'inc/functions.php')
| -rw-r--r-- | inc/functions.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/functions.php b/inc/functions.php index 70f15c59..6ce76472 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -240,6 +240,9 @@ function loadConfig() { event_handler('post', 'postHandler'); } + if (is_array($config['anonymous'])) + $config['anonymous'] = $config['anonymous'][array_rand($config['anonymous'])]; + event('load-config'); if ($config['debug']) { |
