Completed
Push — master ( df6c5b...bb0fdb )
by Paul
30s queued 12s
created
acp/tfa_module.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
 			'title'	=> 'ACP_TFA_SETTINGS',
44 44
 			'vars'	=> array(
45 45
 				'legend1'				=> 'ACP_TFA_SETTINGS',
46
-				'tfa_mode'				=> array('lang' => 'TFA_MODE', 'validate' => 'int',	'type' => 'select', 'method' => 'select_tfa_method', 'explain' => true),
47
-				'tfa_acp'               => array('lang' => 'TFA_ACP',  'validate' => 'int', 'type' => 'radio:no_yes', 'explain' => true),
46
+				'tfa_mode'				=> array('lang' => 'TFA_MODE', 'validate' => 'int', 'type' => 'select', 'method' => 'select_tfa_method', 'explain' => true),
47
+				'tfa_acp'               => array('lang' => 'TFA_ACP', 'validate' => 'int', 'type' => 'radio:no_yes', 'explain' => true),
48 48
 
49 49
 				'legend4'				=> 'ACP_SUBMIT_CHANGES',
50 50
 			)
@@ -98,12 +98,12 @@  discard block
 block discarded – undo
98 98
 
99 99
 		if ($submit)
100 100
 		{
101
-			$phpbb_log->add('admin', $user->data['user_id'], $user->ip, 'LOG_TFA_CONFIG_' . strtoupper($mode));
101
+			$phpbb_log->add('admin', $user->data['user_id'], $user->ip, 'LOG_TFA_CONFIG_'.strtoupper($mode));
102 102
 
103 103
 			$message = $user->lang('CONFIG_UPDATED');
104 104
 			$message_type = E_USER_NOTICE;
105 105
 
106
-			trigger_error($message . adm_back_link($this->u_action), $message_type);
106
+			trigger_error($message.adm_back_link($this->u_action), $message_type);
107 107
 		}
108 108
 
109 109
 		if (!$request->is_secure())
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 
117 117
 		$template->assign_vars(array(
118 118
 			'L_TITLE'			=> $user->lang($display_vars['title']),
119
-			'L_TITLE_EXPLAIN'	=> $user->lang($display_vars['title'] . '_EXPLAIN'),
119
+			'L_TITLE_EXPLAIN'	=> $user->lang($display_vars['title'].'_EXPLAIN'),
120 120
 
121 121
 			'S_ERROR'			=> (sizeof($error)) ? true : false,
122 122
 			'ERROR_MSG'			=> implode('<br />', $error),
@@ -145,9 +145,9 @@  discard block
 block discarded – undo
145 145
 			$type = explode(':', $vars['type']);
146 146
 
147 147
 			$l_explain = '';
148
-			if ($vars['explain'] && array_key_exists($vars['lang'] . '_EXPLAIN', $user->lang))
148
+			if ($vars['explain'] && array_key_exists($vars['lang'].'_EXPLAIN', $user->lang))
149 149
 			{
150
-				$l_explain =  $user->lang($vars['lang'] . '_EXPLAIN');
150
+				$l_explain = $user->lang($vars['lang'].'_EXPLAIN');
151 151
 			}
152 152
 
153 153
 			$content = build_cfg_template($type, $config_key, $this->new_config, $config_key, $vars);
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
 		foreach ($act_ary as $key => $data)
188 188
 		{
189 189
 			$selected = ($data == $selected_value) ? ' selected="selected"' : '';
190
-			$act_options .= '<option value="' . $data . '"' . $selected . '>' . $user->lang($key) . '</option>';
190
+			$act_options .= '<option value="'.$data.'"'.$selected.'>'.$user->lang($key).'</option>';
191 191
 		}
192 192
 		return $act_options;
193 193
 	}
Please login to merge, or discard this patch.