diff --git a/upload/ajax/posts.php b/upload/ajax/posts.php index a2dc80092..d3a126343 100644 --- a/upload/ajax/posts.php +++ b/upload/ajax/posts.php @@ -77,6 +77,10 @@ switch($this->request['type']) $message = (!empty($message)) ? preg_replace($orig_word, $replace_word, $message) : ''; } + if($post['post_attachment'] || $post['topic_first_post_id']) + { + $message = '[quote]'. $post['topic_title'] .'[/quote]'; + } if(mb_strlen($message, 'UTF-8') > 1000) { $this->response['redirect'] = make_url('posting.php?mode=quote&p='. $post_id); diff --git a/upload/config.php b/upload/config.php index 387d62818..7ba64f0df 100644 --- a/upload/config.php +++ b/upload/config.php @@ -53,8 +53,8 @@ $bb_cfg = $tr_cfg = $page_cfg = array(); // Increase number of revision after update $bb_cfg['tp_version'] = '2.1 Stable'; -$bb_cfg['tp_release_state'] = 'R293'; -$bb_cfg['tp_release_date'] = '20-09-2011'; +$bb_cfg['tp_release_state'] = 'R294'; +$bb_cfg['tp_release_date'] = '30-09-2011'; // Database $charset = 'utf8'; @@ -508,7 +508,9 @@ $bb_cfg['copyright_holders_html_path'] = $bb_cfg['html_path'] .'copyright_holder $bb_cfg['advert_html_path'] = $bb_cfg['html_path'] .'advert.html'; # // Captcha -$bb_cfg['captcha']['disabled'] = false; -$bb_cfg['captcha']['secret_key'] = 'secret_key'; -$bb_cfg['captcha']['img_url'] = './images/captcha/'; # without '/' -$bb_cfg['captcha']['img_path'] = BB_PATH .'/images/captcha/'; # without '/' +$bb_cfg['captcha'] = array( + 'disabled' => false, + 'secret_key' => 'secret_key', + 'img_url' => './images/captcha/', # without '/' + 'img_path' => BB_PATH .'/images/captcha/', # without '/' +); diff --git a/upload/includes/cron/jobs/cache_gc.php b/upload/includes/cron/jobs/cache_gc.php index 55737f71a..ecefc7d7a 100644 --- a/upload/includes/cron/jobs/cache_gc.php +++ b/upload/includes/cron/jobs/cache_gc.php @@ -15,6 +15,6 @@ foreach ($gc_cache as $cache_name) if (method_exists(CACHE($cache_name), 'gc')) { $changes = CACHE($cache_name)->gc(); - $cron_runtime_log .= date('Y-m-d H:i:s') ." -- tr -- $changes rows deleted\n"; + $cron_runtime_log = date('Y-m-d H:i:s') ." -- tr -- $changes rows deleted\n"; } } diff --git a/upload/includes/cron/jobs/tr_cleanup_and_dlstat.php b/upload/includes/cron/jobs/tr_cleanup_and_dlstat.php index b0fe5cd20..10b14c140 100644 --- a/upload/includes/cron/jobs/tr_cleanup_and_dlstat.php +++ b/upload/includes/cron/jobs/tr_cleanup_and_dlstat.php @@ -2,6 +2,8 @@ if (!defined('BB_ROOT')) die(basename(__FILE__)); +global $tr_cfg; + $releaser = DL_STATUS_RELEASER; if($bb_cfg['announce_type'] != 'xbt') diff --git a/upload/templates/default/index.tpl b/upload/templates/default/index.tpl index 05b5bc493..f6bdcb3b4 100644 --- a/upload/templates/default/index.tpl +++ b/upload/templates/default/index.tpl @@ -49,8 +49,7 @@ -