From baa81afc7721d7c0860c779d392a18889128d3f0 Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Mon, 10 Apr 2006 07:21:35 +0000 Subject: [PATCH] Fix borkage when posting an entry --- docs/NEWS | 1 + include/functions_config.inc.php | 2 +- include/functions_entries.inc.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/NEWS b/docs/NEWS index 165a6ad..f06f5ab 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -13,6 +13,7 @@ Version 1.1-alpha1() - Move images/directories - Also delete properties when deleting an image - Create Smarty functions to access media properties by ID/filename + - Make media selector smartyfied * Added directory tree view widget (JS) to the Media Selector (garvinhicking) diff --git a/include/functions_config.inc.php b/include/functions_config.inc.php index b1da2d1..576df28 100644 --- a/include/functions_config.inc.php +++ b/include/functions_config.inc.php @@ -519,7 +519,7 @@ function serendipity_is_iframe() { global $serendipity; if ($serendipity['GET']['is_iframe'] && is_array($_SESSION['save_entry'])) { - include S9Y_INCLUDE_PATH . 'include/functions_entries_admin.inc.php'; + include_once S9Y_INCLUDE_PATH . 'include/functions_entries_admin.inc.php'; // An iframe may NOT contain and tags, that's why we emit different headers here than on serendipity_admin.php // We need to restore GET/POST variables to that depending plugins inside the iframe diff --git a/include/functions_entries.inc.php b/include/functions_entries.inc.php index 03a074e..9d1e621 100644 --- a/include/functions_entries.inc.php +++ b/include/functions_entries.inc.php @@ -1065,7 +1065,7 @@ function serendipity_purgeEntry($id, $timestamp = null) { function serendipity_updertEntry($entry) { global $serendipity; - include S9Y_INCLUDE_PATH . 'include/functions_entries_admin.inc.php'; + include_once S9Y_INCLUDE_PATH . 'include/functions_entries_admin.inc.php'; $errors = array(); serendipity_plugin_api::hook_event('backend_entry_updertEntry', $errors, $entry); -- 2.39.5