function TransformInline($text, $markup = 2.0, $basepage = false) { static $trfm; $action = $GLOBALS['request']->getArg('action'); if (empty($trfm) or $action == 'SpellCheck') { $trfm = new InlineTransformer(); } if ($markup < 2.0) { $text = ConvertOldMarkup($text, 'inline'); } if ($basepage) { return new CacheableMarkup($trfm->parse($text), $basepage); } return $trfm->parse($text); }
function TransformInline($text, $markup = 2.0, $basepage = false) { static $trfm; if (empty($trfm)) { $trfm = new InlineTransformer(); } if ($markup < 2.0) { $text = ConvertOldMarkup($text, 'inline'); } if ($basepage) { return new CacheableMarkup($trfm->parse($text), $basepage); } return $trfm->parse($text); }