From f6d863e74ed3a3a3f66af95f6493b7c20ac9a700 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sat, 27 Apr 2013 13:16:08 -0700 Subject: [PATCH] Path correction and styling fixes --- e107_core/shortcodes/batch/admin_shortcodes.php | 2 +- e107_handlers/form_handler.php | 6 +++--- e107_plugins/chatbox_menu/chatbox_menu.php | 5 +++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/e107_core/shortcodes/batch/admin_shortcodes.php b/e107_core/shortcodes/batch/admin_shortcodes.php index 4cc91128e..a11062c96 100644 --- a/e107_core/shortcodes/batch/admin_shortcodes.php +++ b/e107_core/shortcodes/batch/admin_shortcodes.php @@ -20,7 +20,7 @@ class admin_shortcodes if (!ADMIN) { return ''; } return "
- +
"; } diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index 5cd6efb01..87f012622 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -397,7 +397,7 @@ class e_form $previnput = $idinput."-preview"; $optioni = $idinput."-options"; - $img = (strpos($curVal,"://")!==false) ? $curVal : $tp->thumbUrl(e_MEDIA."avatars/default/".$curVal,"aw=".vartrue($width)."&ah=".vartrue($height)); + $img = (strpos($curVal,"://")!==false) ? $curVal : $tp->thumbUrl(e_AVATAR_DEFAULT.$curVal,"aw=".vartrue($width)."&ah=".vartrue($height),true); if(!$curVal) { @@ -416,7 +416,7 @@ class e_form $text .= ""; //TODO Common LAN. } - $avFiles = e107::getFile()->get_files(e_MEDIA."avatars/default/",".jpg|.png|.gif|.jpeg|.JPG|.GIF|.PNG"); + $avFiles = e107::getFile()->get_files(e_AVATAR_DEFAULT,".jpg|.png|.gif|.jpeg|.JPG|.GIF|.PNG"); $text .= "\n