Advertisement:

Navigation

Readme

This patch file will update your forum to SMF 1.0.22.

File Edits

./index.php

Operation #1
Find: [Select]
* =============================================================================== *
* Software Version: SMF 1.0.21 *
Replace With: [Select]
* =============================================================================== *
* Software Version: SMF 1.0.22 *

Operation #2
Find: [Select]

$forum_version = 'SMF 1.0.21';
Replace With: [Select]

$forum_version = 'SMF 1.0.22';

Operation #3
Find: [Select]
$time_start = microtime();

// Load the settings...
require_once(dirname(__FILE__) . '/Settings.php');
Replace With: [Select]
$time_start = microtime();

// Make sure some things simply do not exist.
foreach (array('db_character_set') as $variable)
if (isset($GLOBALS[$variable]))
unset($GLOBALS[$variable], $GLOBALS[$variable]);

// Load the settings...
require_once(dirname(__FILE__) . '/Settings.php');

./Sources/MessageIndex.php

Operation #1
Find: [Select]
* =============================================================================== *
* Software Version: SMF 1.0.10 *
Replace With: [Select]
* =============================================================================== *
* Software Version: SMF 1.0.22 *

Operation #2
Find: [Select]
// View all the topics, or just a few?
$maxindex = isset($_REQUEST['all']) && !empty($modSettings['enableAllMessages']) ? $board_info['num_topics'] : $modSettings['defaultMaxTopics'];

// Make sure the starting place makes sense and construct the page index.
Replace With: [Select]
// View all the topics, or just a few?
$maxindex = isset($_REQUEST['all']) && !empty($modSettings['enableAllMessages']) ? $board_info['num_topics'] : $modSettings['defaultMaxTopics'];

// We only know these.
if (isset($_REQUEST['sort']) && !in_array($_REQUEST['sort'], array('subject', 'starter', 'last_poster', 'replies', 'views', 'first_post', 'last_post')))
$_REQUEST['sort'] = 'last_post';

// Make sure the starting place makes sense and construct the page index.