diff options
| author | Savetheinternet <savetheinternet@tinyboard.org> | 2011-12-18 08:48:16 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@tinyboard.org> | 2011-12-18 08:48:16 +1100 |
| commit | be860577a9ef34915577145ef830bbfab525484a (patch) | |
| tree | 644c8192656f6781a5adec9f79c5d9b61cb1dc47 /post.php | |
| parent | 3b2088ca75fee78bd51102bbdce0a9128f47d760 (diff) | |
optionally disable image requirement for new threads
Diffstat (limited to 'post.php')
| -rw-r--r-- | post.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -235,7 +235,7 @@ // Check for a file if($OP && !isset($post['no_longer_require_an_image_for_op'])) { - if(!isset($_FILES['file']['tmp_name']) || empty($_FILES['file']['tmp_name'])) + if(!isset($_FILES['file']['tmp_name']) || empty($_FILES['file']['tmp_name']) && $config['force_image_op']) error($config['error']['noimage']); } @@ -244,7 +244,7 @@ $post['email'] = utf8tohtml($_POST['email']); $post['body'] = $_POST['body']; $post['password'] = $_POST['password']; - $post['has_file'] = !isset($post['embed']) && (($OP && !isset($post['no_longer_require_an_image_for_op'])) || (isset($_FILES['file']) && !empty($_FILES['file']['tmp_name']))); + $post['has_file'] = !isset($post['embed']) && (($OP && !isset($post['no_longer_require_an_image_for_op']) && $config['force_image_op']) || (isset($_FILES['file']) && !empty($_FILES['file']['tmp_name']))); $post['mod'] = isset($_POST['mod']) && $_POST['mod']; if($post['has_file']) |
