From: garvinhicking Date: Fri, 10 Jun 2005 08:14:24 +0000 (+0000) Subject: missing function, thanks to Karotte X-Git-Tag: 0.9~407 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=cf7a254ca6f00a462be79fa14c1a50c996187081;p=s9y.git missing function, thanks to Karotte --- diff --git a/include/functions_entries.inc.php b/include/functions_entries.inc.php index a067e79..b3802c4 100644 --- a/include/functions_entries.inc.php +++ b/include/functions_entries.inc.php @@ -2,6 +2,16 @@ # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team) # All rights reserved. See LICENSE file for licensing details +function serendipity_deleteCategory($category_range, $admin_category) { + global $serendipity; + + if (!serendipity_checkPermission('adminCategoriesDelete')) { + return false; + } + + return serendipity_db_query("DELETE FROM {$serendipity['dbPrefix']}category WHERE category_left BETWEEN {$category_range} {$admin_category}") ) { +} + function serendipity_fetchCategoryRange($categoryid) { global $serendipity;