Create a new template based on the default template (see CustomizingTemplates for help), but replace template/save.php with the code shown below.

Return to TaviPatches.

template/save.php

<?php
require_once(TemplateDir . '/common.php');

function template_save($args)
{
  global $TempDir, $ErrorCreatingTemp, $ErrorWritingTemp;

  $num = posix_getpid();                // Comment if running on Windows.
  // $num = rand();                     // Uncomment if running on Windows.

  $temp = $TempDir . '/wiki_' . $num . '.txt';

  if(!($h1 = fopen($temp, 'w')))
    { die($ErrorCreatingTemp); }

  if(fwrite($h1, $args['text']) < 0)
    { die($ErrorWritingTemp); }

  fclose($h1);

  $words = `spell $temp | sort | uniq`;
  unlink($temp);

  template_common_prologue(array('norobots' => 1,
                                 'title'    => 'Thank you!',
                                 'heading'  => 'Thank you!',
                                 'headlink' => '',
                                 'headsufx' => '',
                                 'toolbar'  => 0));
?>
<div id="body">
<p>Thank you for your contributions to
<a href="<?php print viewURL($args['page']); ?>"><?php print $args['page']; ?></a>!
The spelling checker took issue with the following words; please consider fixing
them.</p>
<hr />
<pre><?php print $words; ?></pre>
<?php
  template_common_epilogue(array('nosearch' => 1));
}
?>