From: garvinhicking Date: Tue, 6 Sep 2005 18:00:05 +0000 (+0000) Subject: Thanks to Stephan herman for detecting missing include X-Git-Tag: 0.9~166 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c1d67bcd9d17775da9cb2c785c7e29f09a7ef0ce;p=s9y.git Thanks to Stephan herman for detecting missing include --- diff --git a/comment.php b/comment.php index 1647c71..f849e14 100644 --- a/comment.php +++ b/comment.php @@ -3,6 +3,8 @@ # All rights reserved. See LICENSE file for licensing details include_once('serendipity_config.inc.php'); +include_once S9Y_INCLUDE_PATH . 'include/functions_entries_admin.inc.php'; + header('Content-Type: text/html; charset=' . LANG_CHARSET); if (isset($serendipity['GET']['delete'], $serendipity['GET']['entry'], $serendipity['GET']['type'])) { diff --git a/include/functions_entries.inc.php b/include/functions_entries.inc.php index e42f453..f14e28e 100644 --- a/include/functions_entries.inc.php +++ b/include/functions_entries.inc.php @@ -774,6 +774,8 @@ function serendipity_purgeEntry($id, $timestamp = null) { function serendipity_updertEntry($entry) { global $serendipity; + include_once S9Y_INCLUDE_PATH . 'include/functions_entries_admin.inc.php'; + $errors = array(); serendipity_plugin_api::hook_event('backend_entry_updertEntry', $errors, $entry); if (count($errors) > 0) {