$Transition['version'] < 2001006 - all transitions listed above $Transition['fplbygroup'] - restore FPLByGroup function $Transition['version'] < 2000915 - all transitions listed above $Transition['mainrc'] - keep using Main.AllRecentChanges $Transition['mainapprovedurls'] - keep using Main.ApprovedUrls $Transition['pageeditfmt'] - default $PageEditFmt value $Transition['mainpages'] - other default pages in Main $Transition['version'] < 1999944 - all transitions listed above To get all of the transitions for compatibility with a previous version of PmWiki, simply set $Transition['version'] in a local configuration file to the version number you want compatibility with. All of the transitions associated with that version will then be enabled. Example: # Keep compatibility with PmWiki version 2.0.13 $Transition['version'] = 2000013; To explicitly enable or disable specific transitions, set the corresponding $Transition[] element to 1 or 0. This will override the $Transition['version'] item listed above. For example, to enable just the 'pageeditfmt' transition, use $Transition['pageeditfmt'] = 1; Script maintained by Petko YOTOV www.pmwiki.org/petko */ ## if ?trans=0 is specified, then we don't do any fixups. if (@$_REQUEST['trans']==='0') return; ## set a default Transition version if we don't have one SDV($Transition['version'], $VersionNum); ## Transitions from 2.2.0-beta67 if (@$Transition['version'] < 2001967) SDVA($Transition, array('nosessionencode' => 1)); if (@$Transition['nosessionencode']) { $SessionEncode = NULL; $SessionDecode = NULL; } ## Transitions from 2.2.0-beta41 if (@$Transition['version'] < 2001941) SDVA($Transition, array('wspre' => 1)); if (@$Transition['wspre']) SDV($EnableWSPre, 1); ## Transitions from 2.2.0-beta24 if (@$Transition['version'] < 2001924) SDVA($Transition, array('wikiwords' => 1)); ## wikiwords: ## This restores the PmWiki 2.1 behavior for WikiWord processing. ## WikiWords aren't linked by default, but appear with ## ... tags around them. if (@$Transition['wikiwords']) { SDV($EnableWikiWords, 1); SDV($LinkWikiWords, 0); } ## Transitions from 2.2.0-beta1 if (@$Transition['version'] < 2001901) SDVA($Transition, array('abslinks' => 1)); ## abslinks: ## This restores settings so that PmWiki treats all links ## as absolute (following the 2.1.x and earlier interpretation). if (@$Transition['abslinks']) { SDV($EnableRelativePageLinks, 0); SDV($EnableRelativePageVars, 0); } ## Transitions from 2.1.12 if (@$Transition['version'] < 2001012) SDVA($Transition, array('nodivnest' => 1)); ## nodivnest: ## This restores the PmWiki 2.1.11 behavior that doesn't ## allow nesting of divs and tables. if (@$Transition['nodivnest']) { function TCells($m) { list($x, $name, $attr) = $m; global $MarkupFrame; $attr = preg_replace('/([a-zA-Z]=)([^\'"]\\S*)/',"\$1'\$2'",$attr); $tattr = @$MarkupFrame[0]['tattr']; $name = strtolower($name); $out = '<:block>'; if (strncmp($name, 'cell', 4) != 0 || @$MarkupFrame[0]['closeall']['div']) { $out .= @$MarkupFrame[0]['closeall']['div']; unset($MarkupFrame[0]['closeall']['div']); $out .= @$MarkupFrame[0]['closeall']['table']; unset($MarkupFrame[0]['closeall']['table']); } if ($name == 'div') { $MarkupFrame[0]['closeall']['div'] = ""; $out .= "
"; } else if ($name == 'cellnr') $out .= " | |
"; else $out .= " | ";
}
return $out;
}
Markup('table', '
|