summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael <savetheinternet@tinyboard.org>2013-03-21 08:53:36 -0700
committerMichael <savetheinternet@tinyboard.org>2013-03-21 08:53:36 -0700
commitb9140f3c079c925092dd7a6d53ed05226888756a (patch)
tree38bd517151e6517dbb4b5d76f52f52230a0e9c07
parent31a21a59575f1306014c4069bce10b5e5a92a7c8 (diff)
parentbb54605eb7ef65c5e415aba7bcc94eed928e185e (diff)
Merge pull request #106 from ctrlcctrlv/master
Per board configuration names were not working
-rw-r--r--inc/config.php4
-rw-r--r--inc/mod/pages.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/inc/config.php b/inc/config.php
index 8d37e601..8eed50fa 100644
--- a/inc/config.php
+++ b/inc/config.php
@@ -858,8 +858,8 @@
$config['mod']['shadow_mesage'] = 'Moved to %s.';
// Capcode to use when posting the above message.
$config['mod']['shadow_capcode'] = 'Mod';
- // Name to use when posting the above message.
- $config['mod']['shadow_name'] = $config['anonymous'];
+ // Name to use when posting the above message. If false, the default board name will be used. If something else, that will be used.
+ $config['mod']['shadow_name'] = false;
// Wait indefinitely when rebuilding everything
$config['mod']['rebuild_timelimit'] = 0;
diff --git a/inc/mod/pages.php b/inc/mod/pages.php
index db51324a..5d736a1a 100644
--- a/inc/mod/pages.php
+++ b/inc/mod/pages.php
@@ -912,7 +912,7 @@ function mod_move($originBoard, $postID) {
'mod' => true,
'subject' => '',
'email' => '',
- 'name' => $config['mod']['shadow_name'],
+ 'name' => (!$config['mod']['shadow_name'] ? $config['anonymous'] : $config['mod']['shadow_name']),
'capcode' => $config['mod']['shadow_capcode'],
'trip' => '',
'password' => '',