]> git.mjollnir.org Git - s9y.git/commitdiff
missing function, thanks to Karotte
authorgarvinhicking <garvinhicking>
Fri, 10 Jun 2005 08:14:24 +0000 (08:14 +0000)
committergarvinhicking <garvinhicking>
Fri, 10 Jun 2005 08:14:24 +0000 (08:14 +0000)
include/functions_entries.inc.php

index a067e795621857fd1e0ee71c7084c114de973b80..b3802c44bd8bbdef883871caead4e7185b83063b 100644 (file)
@@ -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;