Version 0.8.4 ()
------------------------------------------------------------------------
+ * Hide title of an entry in the frontend, if entry is draft and not
+ displayed. Fixes Bug #1260667 (garvinhicking)
+
* Unbundle Serendipity XML-RPC functions from the bundled distribution.
You will now need to install the additional plugin "Post via XML-RPC"
(serendipity_event_xmlrpc) to make entry posts via this interface.
$_GET['serendipity']['action'] = 'read';
$_GET['serendipity']['id'] = $id;
- $title = serendipity_db_query("SELECT title FROM {$serendipity['dbPrefix']}entries WHERE id=$id", true);
- $serendipity['head_title'] = $title[0];
- $serendipity['head_subtitle'] = $serendipity['blogTitle'];
+ $title = serendipity_db_query("SELECT title FROM {$serendipity['dbPrefix']}entries WHERE id=$id WHERE e.isdraft = 'false' " . (!serendipity_db_bool($serendipity['showFutureEntries']) ? " AND e.timestamp <= " . time() : ''), true);
+ if (is_array($title)) {
+ $serendipity['head_title'] = $title[0];
+ $serendipity['head_subtitle'] = $serendipity['blogTitle'];
+ }
ob_start();
include_once(S9Y_INCLUDE_PATH . 'include/genpage.inc.php');