From 4adf893c3906bebb29fc1720793366291da87b58 Mon Sep 17 00:00:00 2001 From: Jano Slota Date: Thu, 3 Jul 2014 02:55:33 +0200 Subject: Random names for anonymous users - thanks to svnth --- inc/functions.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'inc/functions.php') 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']) { -- cgit v1.3