diff options
author | petko <petko@524c5546-5005-0410-9a3e-e25e191bd360> | 2022-11-28 14:33:09 +0000 |
---|---|---|
committer | petko <petko@524c5546-5005-0410-9a3e-e25e191bd360> | 2022-11-28 14:33:09 +0000 |
commit | 39acf7cd0ffb11609c753c22bf93c2cfd075bc83 (patch) | |
tree | d70425a80fe7b6582ee1dfd9880b492b791e82a0 /pmwiki.php | |
parent | f3a881ff41a2476dd9507a91c994b835acafb0b7 (diff) | |
download | pmwiki.svn-39acf7cd0ffb11609c753c22bf93c2cfd075bc83.tar.bz2 |
Revert WikiStyleToClassName(), PrePrintFmt() -- need more work (PITS:01484).
git-svn-id: svn://pmwiki.org/pmwiki/trunk@4282 524c5546-5005-0410-9a3e-e25e191bd360
Diffstat (limited to 'pmwiki.php')
-rw-r--r-- | pmwiki.php | 31 |
1 files changed, 1 insertions, 30 deletions
@@ -528,12 +528,6 @@ function PQA($x, $keep=true, $styletoclass=false) { $val = preg_replace('/^([\'"]?)(.*)\\1$/', '$2', $a[2]); $s[$a[1]] = $val; } - if (!IsEnabled($EnableUnsafeInlineStyle)) unset($s['style']); - if ($styletoclass && @$s['style'] && function_exists('WikiStyleToClassName') - && @$EnableUnsafeInlineStyle == 2) { - WikiStyleToClassName($s['style'], $s); - unset($s['style']); - } foreach($s as $key=>$val) { $val = PHSC($val, ENT_QUOTES, null, false); if ($keep) $val = Keep($val); @@ -1682,34 +1676,11 @@ function Redirect($pagename, $urlfmt='$PageUrl', $redirecturl=null) { exit; } -## This function processes any wiki pages and functions to HTML before printing -## headers and styles, to allow recipes and wikistyles from sidebars and footers -function PrePrintFmt($pagename,$fmt) { - global $PageStartFmt; - ob_start(); - foreach($fmt as $k=>$x) { - # $PageStartFmt processed after pages, for (:noleft:) etc. to work - if ($x == $PageStartFmt) continue; - if (is_array($x)) { - $fmt[$k] = PrePrintFmt($pagename,$x); - continue; - } - if (preg_match('/^(markup|wiki|page|function):/', $x)) { - PrintFmt($pagename,$x); - $fmt[$k] = ob_get_contents(); - ob_clean(); - } - } - ob_end_clean(); - return $fmt; -} - function PrintFmt($pagename,$fmt) { global $HTTPHeaders,$FmtV; if (is_array($fmt)) { - $fmt = PrePrintFmt($pagename,$fmt); foreach($fmt as $f) PrintFmt($pagename,$f); - return; + return; } if ($fmt == 'headers:') { foreach($HTTPHeaders as $h) (@$sent++) ? @header($h) : header($h); |