summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-02-17 20:12:09 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2011-02-17 20:12:09 +1100
commit5170cd7aa896d8ebc1f1882cb7645cb30d958c15 (patch)
tree3fe1ecee4dafcafebf8f5dde7919595980fe2e7c /post.php
parent7ecac9937d17ad166d0823c0811fb4f7008f7ee4 (diff)
Ability to customize default name ("Anonymous")
Diffstat (limited to 'post.php')
-rw-r--r--post.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/post.php b/post.php
index c932a997..f830d1a5 100644
--- a/post.php
+++ b/post.php
@@ -142,7 +142,7 @@
error($config['error']['noimage']);
}
- $post['name'] = (!empty($_POST['name'])?$_POST['name']:'Anonymous');
+ $post['name'] = (!empty($_POST['name'])?$_POST['name']:$config['anonymous']);
$post['subject'] = $_POST['subject'];
$post['email'] = utf8tohtml($_POST['email']);
$post['body'] = $_POST['body'];
@@ -189,7 +189,7 @@
if($mod && $mod['type'] >= MOD && preg_match('/^((.+) )?## (.+)$/', $post['name'], $match)) {
if(($mod['type'] == MOD && $match[3] == 'Mod') || $mod['type'] >= ADMIN) {
$post['mod_tag'] = $match[3];
- $post['name'] = !empty($match[2])?$match[2]:'Anonymous';
+ $post['name'] = !empty($match[2])?$match[2]:$config['anonymous'];
}
} else {
$post['mod_tag'] = false;