From e18a5cfebd0ea58e92c1498f5796098c673180a5 Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 16 May 2019 11:15:11 -0700 Subject: [PATCH] Closes #3804 Custom label support for remember-me shortcode. --- e107_core/shortcodes/batch/login_shortcodes.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/e107_core/shortcodes/batch/login_shortcodes.php b/e107_core/shortcodes/batch/login_shortcodes.php index 4ed429326..c4245ec15 100644 --- a/e107_core/shortcodes/batch/login_shortcodes.php +++ b/e107_core/shortcodes/batch/login_shortcodes.php @@ -113,14 +113,14 @@ class login_shortcodes extends e_shortcode // return e107::getSecureImg()->r_image(); } - function sc_login_table_secimg_textboc($parm='') + function sc_login_table_secimg_textboc($parm=null) { if(empty($this->userReg)) { return null; } - if(!$this->secImg){ return; } + if(!$this->secImg){ return null; } return e107::getSecureImg()->renderInput(); // return ""; } @@ -136,7 +136,7 @@ class login_shortcodes extends e_shortcode } - function sc_login_table_autologin_lan($parm='') + function sc_login_table_autologin_lan($parm=null) { if(empty($this->userReg)) { @@ -146,14 +146,19 @@ class login_shortcodes extends e_shortcode return LAN_LOGIN_8; } - function sc_login_table_rememberme($parm=null) + function sc_login_table_rememberme($parm=array()) { if(empty($this->userReg)) { return null; } - return e107::getForm()->checkbox('autologin',1,false,LAN_LOGIN_8); + if(!isset($parm['label'])) + { + $parm['label'] = LAN_LOGIN_8; + } + + return e107::getForm()->checkbox('autologin',1,false,$parm); }