From 294ff7a6d0cd19e93bc409bee570ba53f43144eb Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 25 Feb 2016 12:53:04 -0800 Subject: [PATCH] Fixes #1285 - Avoid no-avatar confusion. LANs required. --- e107_admin/image.php | 10 ++++++++++ e107_handlers/form_handler.php | 31 +++++++++++++++++++++++-------- 2 files changed, 33 insertions(+), 8 deletions(-) diff --git a/e107_admin/image.php b/e107_admin/image.php index 0a9a1e10e..889a9346e 100644 --- a/e107_admin/image.php +++ b/e107_admin/image.php @@ -1910,7 +1910,17 @@ class media_admin_ui extends e_admin_ui } + function renderHelp() + { + if($this->getAction() == 'avatar') + { + $text = "Avatar Pre-selection Folder:
".e_AVATAR_DEFAULT.""; //TODO LAN + return array('caption'=>EMESSLAN_TITLE_INFO, 'text'=>$text); + } + + + } diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index 50bcf7f59..b16941117 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -679,7 +679,7 @@ class e_form $avFiles = e107::getFile()->get_files(e_AVATAR_DEFAULT,".jpg|.png|.gif|.jpeg|.JPG|.GIF|.PNG"); $text .= "\n"; // Used by usersettings.php right now. @@ -717,7 +732,7 @@ class e_form return $text; - + /* //TODO discuss and FIXME // Intentionally disable uploadable avatar and photos at this stage if (false && $pref['avatar_upload'] && FILE_UPLOADS) @@ -730,7 +745,7 @@ class e_form { $text .= "
".LAN_SIGNUP_26."
".LAN_SIGNUP_34."
"; - } + } */ }