ソースを参照

Added support for anonymous name generator to be a function in addition to being an array of names

clean_prod_vichan_update
Benjamin Southall 7年前
コミット
302a27742a
1個のファイルの変更5行の追加1行の削除
  1. +5
    -1
      inc/functions.php

+ 5
- 1
inc/functions.php ファイルの表示

@@ -314,8 +314,12 @@ function loadConfig() {
Cache::set('events_'.$boardsuffix, $events);
}

if (is_array($config['anonymous']))
if (is_array($config['anonymous'])) {
$config['anonymous'] = $config['anonymous'][array_rand($config['anonymous'])];
}
else if (is_callable($config['anonymous'])){
$config['anonymous'] = $config['anonymous']($boardsuffix);
}
if ($config['debug']) {
if (!isset($debug)) {


読み込み中…
キャンセル
保存