From: garvinhicking Date: Thu, 16 Nov 2006 08:33:45 +0000 (+0000) Subject: Backport X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f98a9afdb093e1b04f51274f662d1937a9f5a31c;p=s9y.git Backport --- diff --git a/include/functions_entries.inc.php b/include/functions_entries.inc.php index 6cb5d94..0b69b6f 100644 --- a/include/functions_entries.inc.php +++ b/include/functions_entries.inc.php @@ -1189,6 +1189,7 @@ function serendipity_updertEntry($entry) { if (!serendipity_db_bool($entry['isdraft'])) { serendipity_plugin_api::hook_event('frontend_display', $entry, array('no_scramble' => true, 'from' => 'functions_entries:updertEntry')); + $drafted_entry = $entry; } serendipity_purgeEntry($entry['id'], $entry['timestamp']); @@ -1203,7 +1204,7 @@ function serendipity_updertEntry($entry) { } if (!serendipity_db_bool($entry['isdraft'])) { - serendipity_handle_references($entry['id'], $serendipity['blogTitle'], $entry['title'], $entry['body'] . $entry['extended'], $newEntry); + serendipity_handle_references($entry['id'], $serendipity['blogTitle'], $drafted_entry['title'], $drafted_entry['body'] . $drafted_entry['extended'], $newEntry); } return (int)$entry['id']; diff --git a/serendipity_config.inc.php b/serendipity_config.inc.php index b78c099..b70881d 100644 --- a/serendipity_config.inc.php +++ b/serendipity_config.inc.php @@ -21,7 +21,7 @@ if (IS_installed === true && !defined('IN_serendipity')) { include_once(S9Y_INCLUDE_PATH . 'include/compat.inc.php'); // The version string -$serendipity['version'] = '1.0.3'; +$serendipity['version'] = '1.0.4'; // Name of folder for the default theme $serendipity['defaultTemplate'] = 'carl_contest';