@@ -35,7 +35,7 @@ class Category extends ArtObject {
3535
3636 function __construct ()
3737 {
38- $ this -> ArtObject ("bb_categories " );
38+ parent :: __construct ("bb_categories " );
3939 $ this ->initVar ('cat_id ' , XOBJ_DTYPE_INT );
4040 $ this ->initVar ('pid ' , XOBJ_DTYPE_INT , 0 );
4141 $ this ->initVar ('cat_title ' , XOBJ_DTYPE_TXTBOX );
@@ -51,7 +51,7 @@ function __construct()
5151class IforumCategoryHandler extends ArtObjectHandler {
5252 function __construct (&$ db )
5353 {
54- $ this -> ArtObjectHandler ($ db , 'bb_categories ' , 'Category ' , 'cat_id ' , 'cat_title ' );
54+ parent :: __construct ($ db , 'bb_categories ' , 'Category ' , 'cat_id ' , 'cat_title ' );
5555 }
5656
5757 function &getAllCats ($ permission = false , $ idAsKey = true , $ tags = null )
@@ -77,7 +77,7 @@ function &getAllCats($permission = false, $idAsKey = true, $tags = null)
7777 return $ _cachedCats [$ perm_string ];
7878 }
7979
80- function insert (&$ category )
80+ function insert (&$ category, $ force = true )
8181 {
8282 parent ::insert ($ category , true );
8383 if ($ category ->isNew ())
@@ -88,7 +88,7 @@ function insert(&$category)
8888 return $ category ->getVar ('cat_id ' );
8989 }
9090
91- function delete (&$ category )
91+ function delete (&$ category, $ force = true )
9292 {
9393 global $ icmsModule ;
9494 $ forum_handler =icms_getmodulehandler ('forum ' , basename (dirname (dirname (__FILE__ ) ) ), 'iforum ' );
0 commit comments