Version 0.9.2 ()
------------------------------------------------------------------------
+ * Fix entry quicksearch on postgresql, where it returned the same
+ entry multiple times if it was contained in multiple categories.
+ Fix by Robert Treat, many thanks!
+
* Make templatechooser plugin emit a non-cached version of the
stylesheet, so that user-changes will be visible without manually
purging the cache (garvinhicking)
function serendipity_deleteCategory($category_range, $admin_category) {
global $serendipity;
-
+
if (!serendipity_checkPermission('adminCategoriesDelete')) {
return false;
}
-
+
serendipity_plugin_api::hook_event('backend_category_delete', $category_range);
return serendipity_db_query("DELETE FROM {$serendipity['dbPrefix']}category WHERE category_left BETWEEN {$category_range} {$admin_category}");
$group = 'GROUP BY e.id';
$distinct = '';
}
-
+
serendipity_ACL_SQL($cond);
// Store the unique query condition for entries for later reference, like getting the total article count.
ON c.authorid = $sql_authorid
LEFT OUTER JOIN {$serendipity['dbPrefix']}authorgroups AS ag
ON ag.authorid = a.authorid
- LEFT OUTER JOIN {$serendipity['dbPrefix']}access AS acl
+ LEFT OUTER JOIN {$serendipity['dbPrefix']}access AS acl
ON (ag.groupid = acl.groupid AND acl.artifact_id = c.categoryid)
$where
$group";
e.authorid,
a.realname AS author,
a.email,
- ec.categoryid,
e.timestamp,
e.comments,
e.title,
}
$authorData = array(
- 'authorid' => $entry['authorid'],
+ 'authorid' => $entry['authorid'],
'username' => $entry['author'],
'email' => $entry['email'],
'realname' => $entry['author']
$s = serendipity_serverOffsetHour(mktime(0, 0, 0, $m, 1, $y), true);
$e = serendipity_serverOffsetHour(mktime(23, 59, 59, $m, date('t', $s), $y), true);
- $entries = serendipity_db_query("SELECT count(id)
+ $entries = serendipity_db_query("SELECT count(id)
FROM {$serendipity['dbPrefix']}entries e
LEFT JOIN {$serendipity['dbPrefix']}entrycat ec
ON e.id = ec.entryid
ON ec.categoryid = c.categoryid
WHERE isdraft = 'false'
AND timestamp >= $s
- AND timestamp <= $e "
+ AND timestamp <= $e "
. (!serendipity_db_bool($serendipity['showFutureEntries']) ? " AND timestamp <= " . time() : '')
. (!empty($cat_sql) ? ' AND ' . $cat_sql : '')
);