$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; */ ## if ?trans=0 is specified, then we don't do any fixups. if (@$_REQUEST['trans']==='0') return; ## 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($name,$attr) { 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', '
|