echo|time ./view > /dev/null
skin=normal|time ./view
if( $TWiki::Plugins::VERSION >= 1.020 ) {
$upperAlpha = TWiki::Func::getRegularExpression("upperAlpha");
$mixedAlphaNum = TWiki::Func::getRegularExpression("mixedAlphaNum");
} else {
$upperAlpha = $TWiki::upperAlpha;
$mixedAlphaNum = $TWiki::mixedAlphaNum;
}
Here is an untested code snippet for your encode challenge:
# =========================
sub _encodeSpecialChars
{
if( $TWiki::Plugins::VERSION >= 1.020 ) { # Not sure about the version number, please check!!
TWiki::Render::encodeSpecialChars( @_ );
} else {
TWiki::encodeSpecialChars( @_ );
}
}
But, mind you, the current DevelopBranch does not have a TWiki::Render::encodeSpecialChars anymore. So you would have to chace that one again...
-- PeterThoeny - 23 Mar 2005