<commit_before><?php

function upgrade_20091004_last_tracker_items_modules_merge_tiki( $installer )
{
	$result = $installer->query( "select moduleId, params from tiki_modules where name='last_modif_tracker_items'; " );
	while( $row = $result->fetchRow() ) {
		$params = $row['params'];
		if (strpos($params, "sort_mode=") === false) {
			if ($params) $params .= "&";
			$params .= "sort_mode=lastModif_desc";
			$installer->query( "update tiki_modules set params='" . $params . "', name='last_tracker_items' where moduleId=" . $row['moduleId'] . "; " );
		}
	}
}
<commit_msg>[FIX] last_modif_tracker_items defining sort_mode, r21973 regression. oops<commit_after><?php

function upgrade_20091004_last_tracker_items_modules_merge_tiki( $installer )
{
	$result = $installer->query( "select moduleId, params from tiki_modules where name='last_modif_tracker_items'; " );
	while( $row = $result->fetchRow() ) {
		$params = $row['params'];
		if (strpos($params, "sort_mode=") === false) {
			if ($params) $params .= "&";
			$params .= "sort_mode=lastModif_desc";
		}
		$installer->query( "update tiki_modules set params='" . $params . "', name='last_tracker_items' where moduleId=" . $row['moduleId'] . "; " );
	}
}

{'fraction_non_alphanumeric': 0.17851239669421487, 'fraction_numerical': 0.017355371900826446, 'mean_word_length': 5.475935828877005, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7321424', 'n_tokens_mistral': 463, 'n_tokens_neox': 430, 'n_words': 80}