func.php: PHP8.0で削除されたjoin(array $array, string $separator)が使われている

メッセージ

タイトルの通りです。

該当部分

func.php

/**
 * Write update_log on updating contents.
 *
 * @param $page page name
 * @param $diff_content diff expression
 */
function pkwk_log_updates($page, $diff_content) {
	global $auth_user, $logging_updates, $logging_updates_log_dir;
	// :
	// 略
	// :
	if (file_exists($log_dir) && defined('JSON_UNESCAPED_UNICODE')) {
 	  	// :
	  	// 略
	  	// :
		$ltsv = join($ar2, "\t") . "\n";  // ここ
		file_put_contents($ltsv_file, $ltsv, FILE_APPEND | LOCK_EX);
	}
}

修正案

/**
 * Write update_log on updating contents.
 *
 * @param $page page name
 * @param $diff_content diff expression
 */
function pkwk_log_updates($page, $diff_content) {
	global $auth_user, $logging_updates, $logging_updates_log_dir;
	// :
	// 略
	// :
	if (file_exists($log_dir) && defined('JSON_UNESCAPED_UNICODE')) {
 	  	// :
	  	// 略
	  	// :
		$ltsv = join("\t", $ar2) . "\n";
		file_put_contents($ltsv_file, $ltsv, FILE_APPEND | LOCK_EX);
	}
}



トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2024-04-03 (水) 07:30:03
Site admin: PukiWiki Development Team

PukiWiki 1.5.4+ © 2001-2022 PukiWiki Development Team. Powered by PHP 8.2.12. HTML convert time: 0.262 sec.

SourceForge