Address some php8.3 errors from optional parameter declarations.

This commit is contained in:
Retro_Guy 2024-12-01 16:17:33 -07:00
parent 5c69415fb1
commit e19661f9bd
3 changed files with 2 additions and 6 deletions

View File

@ -23,9 +23,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
?>
<?php
function message_parse($rawmessage)
{
@ -566,7 +563,6 @@ function show_header_short($head, $group, $local_poster = false)
global $article_show, $text_header, $file_article, $file_thread, $attachment_show;
global $file_attachment, $CONFIG, $config_name, $sitelink;
global $OVERRIDES;
if (isset($OVERRIDES['short_header_show_from_in_subject']) && $OVERRIDES['short_header_show_from_in_subject'] == true) {
show_header_short_with_subject($head, $group, $local_poster);
return;

View File

@ -414,7 +414,7 @@ function check_rate_limit($name, $set = 0, $gettime = 0)
* $ref: The references of the article
* $body: The article itself
*/
function message_post($subject, $from, $newsgroups, $ref, $body, $encryptthis = null, $encryptto = null, $authname = null, $fromname, $followupto = null, $do_attach = null)
function message_post($subject, $from, $newsgroups, $ref, $body, $encryptthis, $encryptto, $authname, $fromname, $followupto = null, $do_attach = null)
{
global $server, $port, $send_poster_host, $text_error, $CONFIG, $OVERRIDES;
global $www_charset, $config_dir, $spooldir, $logdir, $enable_post_log, $name;

View File

@ -863,7 +863,7 @@ function thread_format_lastmessage($c, $group = '')
* Displays a part of the thread. This function is recursively called
* It is used by thread_show
*/
function thread_show_recursive(&$headers, &$liste, $depth, $tree, $group, $article_first = 0, $article_last = 0, &$article_count, $highlight = false, $lastmessage = 1)
function thread_show_recursive(&$headers, &$liste, $depth, $tree, $group, $article_first, $article_last, &$article_count, $highlight = false, $lastmessage = 1)
{
global $thread_treestyle;
global $thread_show, $imgdir;