From d53cba4e8ed369faa23875bc0a1b8430ac663ba1 Mon Sep 17 00:00:00 2001 From: Tijn Kuyper Date: Thu, 6 Jun 2019 16:18:54 +0200 Subject: [PATCH] Forum admin clean-up --- e107_plugins/forum/forum_admin.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/e107_plugins/forum/forum_admin.php b/e107_plugins/forum/forum_admin.php index 26694e513..4c66b3bd2 100644 --- a/e107_plugins/forum/forum_admin.php +++ b/e107_plugins/forum/forum_admin.php @@ -141,7 +141,7 @@ if(!deftrue('OLD_FORUMADMIN')) 'forum_sef' => array ( 'title' => LAN_SEFURL, 'type' => 'text', 'batch'=>true, 'inline'=>true, 'noedit'=>false, 'data' => 'str', 'width' => 'auto', 'help' => 'Leave blank to auto-generate it from the title above.', 'readParms' => '', 'writeParms' => 'sef=forum_name&size=xxlarge', 'class' => 'left', 'thclass' => 'left', ), 'forum_description' => array ( 'title' => LAN_DESCRIPTION, 'type' => 'textarea', 'data' => 'str', 'width' => '30%', 'help' => '', 'readParms' => '', 'writeParms' => '', 'class' => 'left', 'thclass' => 'left', ), 'forum_image' => array ( 'title' => LAN_IMAGE, 'type' => 'image', 'batch'=>false, 'inline'=>false, 'noedit'=>false, 'data' => 'str', 'width' => 'auto', 'help' => 'Image that will be displayed using {FORUMIMAGE}', 'readParms' => '', 'writeParms' => 'media=forum&max=1', 'class' => 'center', 'thclass' => 'center', ), - 'forum_icon' => array('title' => LAN_ICON, 'type' => 'icon', 'data' => 'str', 'width' => 'auto', 'help' => 'Icon that will be displayed using {FORUMICON}', 'readParms' => '', 'writeParms' => '', 'class' => 'left', 'thclass' => 'center',), + 'forum_icon' => array ('title' => LAN_ICON, 'type' => 'icon', 'data' => 'str', 'width' => 'auto', 'help' => 'Icon that will be displayed using {FORUMICON}', 'readParms' => '', 'writeParms' => '', 'class' => 'left', 'thclass' => 'center',), 'forum_parent' => array ( 'title' => FORLAN_75, 'type' => 'dropdown', 'data' => 'int', 'width' => '10%', 'help' => '', 'readParms' => '', 'writeParms' => '', 'class' => 'left', 'thclass' => 'left', ), 'forum_sub' => array ( 'title' => LAN_FORUM_1002, 'type' => 'dropdown', 'data' => 'int', 'width' => 'auto', 'help' => '', 'readParms' => array(), 'writeParms' => array(), 'class' => 'center', 'thclass' => 'center', ), 'forum_moderators' => array ( 'title' => LAN_FORUM_2003, 'type' => 'userclass', 'inline'=>true, 'data' => 'int', 'width' => 'auto', 'help' => '', 'readParms' => 'classlist=admin,main,classes', 'writeParms' => "classlist=admin,main,mods,classes", 'class' => 'left', 'thclass' => 'left', ), @@ -349,7 +349,7 @@ if(!deftrue('OLD_FORUMADMIN')) - public function beforeCreate($new_data) + public function beforeCreate($new_data, $old_data) { $sql = e107::getDb(); $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'); } @@ -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}'"); } @@ -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}'"); }