From 511a0a3d207a0dd08e7383edb6eeed3700a0d256 Mon Sep 17 00:00:00 2001 From: real_nowhereman Date: Wed, 12 Dec 2007 15:28:51 +0000 Subject: [PATCH] added prefiltering on save --- fp-includes/core/core.static.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fp-includes/core/core.static.php b/fp-includes/core/core.static.php index bddb61f..1ed8c86 100755 --- a/fp-includes/core/core.static.php +++ b/fp-includes/core/core.static.php @@ -35,7 +35,12 @@ function static_save($entry, $id, $oldid=null) { $fname = STATIC_DIR . $id . EXT; - $str = utils_kimplode(array_change_key_case($entry, CASE_UPPER)); + $entry = array_change_key_case($entry, CASE_UPPER); + $entry['CONTENT'] = apply_filters('content_save_pre', $entry['CONTENT']); + $entry['SUBJECT'] = apply_filters('title_save_pre', $entry['SUBJECT']); + + $str = utils_kimplode($entry); + if (io_write_file($fname, $str)) { if ( $oldid && $id!=$oldid && $fname = static_exists($oldid)) { $succ = static_delete($oldid) ;