mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 06:38:00 +02:00
Forum admin clean-up
This commit is contained in:
@@ -349,7 +349,7 @@ if(!deftrue('OLD_FORUMADMIN'))
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
public function beforeCreate($new_data)
|
public function beforeCreate($new_data, $old_data)
|
||||||
{
|
{
|
||||||
$sql = e107::getDb();
|
$sql = e107::getDb();
|
||||||
$parentOrder = $sql->retrieve('forum','forum_order','forum_id='.$new_data['forum_parent']." LIMIT 1");
|
$parentOrder = $sql->retrieve('forum','forum_order','forum_id='.$new_data['forum_parent']." LIMIT 1");
|
||||||
@@ -416,7 +416,7 @@ if(!deftrue('OLD_FORUMADMIN'))
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function afterDelete($del_data,$id)
|
public function afterDelete($deleted_data, $id, $deleted_check)
|
||||||
{
|
{
|
||||||
e107::getCache()->clear_sys('forum_perms');
|
e107::getCache()->clear_sys('forum_perms');
|
||||||
}
|
}
|
||||||
@@ -1036,7 +1036,7 @@ if(!deftrue('OLD_FORUMADMIN'))
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function afterDelete($data)
|
public function afterDelete($deleted_data, $id, $deleted_check)
|
||||||
{
|
{
|
||||||
// $sql2->db_Delete('banlist', "banlist_ip='{$banIP}'");
|
// $sql2->db_Delete('banlist', "banlist_ip='{$banIP}'");
|
||||||
}
|
}
|
||||||
@@ -1160,7 +1160,7 @@ if(!deftrue('OLD_FORUMADMIN'))
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function afterDelete($data)
|
public function afterDelete($deleted_data, $id, $deleted_check)
|
||||||
{
|
{
|
||||||
// $sql2->db_Delete('banlist', "banlist_ip='{$banIP}'");
|
// $sql2->db_Delete('banlist', "banlist_ip='{$banIP}'");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user