From c2cc206d21f9e23a9dec2dd003405136d80a2eec Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 27 Mar 2017 19:35:20 -0700 Subject: [PATCH] ADMIN_CHILD_ICON constant added. --- e107_core/templates/admin_icons_template.php | 2 +- e107_plugins/forum/forum_admin.php | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/e107_core/templates/admin_icons_template.php b/e107_core/templates/admin_icons_template.php index 6f64570f0..89f7176e8 100644 --- a/e107_core/templates/admin_icons_template.php +++ b/e107_core/templates/admin_icons_template.php @@ -440,7 +440,7 @@ if (!defined('E_16_FAILEDLOGIN')) { define("E_32_TRUE", ""); - + define("ADMIN_CHILD_ICON", ''); // must use single quotes. define("ADMIN_TRUE_ICON", ""); define("ADMIN_FALSE_ICON", ""); define("ADMIN_WARNING_ICON", ""); diff --git a/e107_plugins/forum/forum_admin.php b/e107_plugins/forum/forum_admin.php index d1ea7e54b..f8492aa35 100644 --- a/e107_plugins/forum/forum_admin.php +++ b/e107_plugins/forum/forum_admin.php @@ -822,7 +822,9 @@ if(!deftrue('OLD_FORUMADMIN')) } $linkQ = e_SELF."?searchquery=&filter_options=page_chapter__".$id."&mode=page&action=list"; - $level_image = $parent ? ' ' : ''; + // $level_image = $parent ? ' ' : ''; + + $level_image = $parent ? str_replace('level-x','level-'.$level, ADMIN_CHILD_ICON) : ''; return ($parent) ? $level_image.$curVal : $curVal; } @@ -858,7 +860,10 @@ if(!deftrue('OLD_FORUMADMIN')) $level = 2; } - $ret['inlineParms'] = array('pre'=>''); + // $ret['inlineParms'] = array('pre'=>''); + + $ret['inlineParms'] = array('pre'=> str_replace('level-x','level-'.$level, ADMIN_CHILD_ICON)); + }