Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

PMAction.php, PMPreviewModule.php:

Code Block
languagephp
$wt = new WikiTransformation();
$wt->setMode('pm');
$body = $wt->processSource($source);

...

Code Block
languagephp
$wt = new WikiTransformation();
$wt->setMode('pm');
$message->setBody($wt->processSource($message->getBody()));

PagePreviewModule.php:

Code Block
languagephp
$wt = new WikiTransformation();
$wt->setPageUnixName($pl->getParameterValue("page_unix_name"));

/* snip */

if ($templatePage) {
    $source = $wt->assemblyTemplate($source, $templatePage->getSource());
}

$result = $wt->processSource($source);