diff options
Diffstat (limited to 'includes/structure.inc')
-rw-r--r-- | includes/structure.inc | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/includes/structure.inc b/includes/structure.inc index 94c14ad6d..aabb9d34a 100644 --- a/includes/structure.inc +++ b/includes/structure.inc @@ -50,7 +50,19 @@ function category_expire_threshold($cid) { // return default comment status of category $cid: function category_comment($cid) { $category = category_get_object("cid", $cid); - return $category->comment; + return $category->comment ? $category->comment : 0; +} + +// return default promote status of category $cid: +function category_promote($cid) { + $category = category_get_object("cid", $cid); + return $category->promote ? $category->promote : 0; +} + +// return default submission status of category $cid: +function category_submission($cid) { + $category = category_get_object("cid", $cid); + return $category->submission ? $category->submission : 0; } // return linked string with name of category $cid: |