Commits

Anonymous committed c361f26

Part 2 of previous commit

  • Participants
  • Parent commits 3047bc5

Comments (0)

Files changed (2)

textpattern/include/txp_prefs.php

 		$active_lang = safe_field('val','txp_prefs',"name='language'");
 		$lang_form = tda(  form(gTxt('active_language').'  '.
 								languages('language',$active_lang).'  '.
-								fInput('submit','Submit',gTxt('save_button'),'').
+								fInput('submit', 'Submit', gTxt('save_button'), 'publish','','','','','publish-button').
 								eInput('prefs').sInput('list_languages')
 							,'display:inline;')
 						,' style="text-align:center" colspan="3"');

textpattern/lib/txplib_forms.php

 
 		foreach ($vals as $a => $b)
 		{
-			$out[] = '<input type="radio" id="'.$id.'-'.$a.'" name="'.$field.'" value="'.$a.'" class="radio"';
+			$out[] = '<label for="'.$id.'-'.$a.'">'.$b.'<input type="radio" id="'.$id.'-'.$a.'" name="'.$field.'" value="'.$a.'"';
 			$out[] = ($a == $var) ? ' checked="checked"' : '';
 			$out[] = ($tabindex) ? ' tabindex="'.$tabindex.'"' : '';
-			$out[] = ' /><label for="'.$id.'-'.$a.'">'.$b.'</label> ';
+			$out[] = ' /></label>';
 		}
 
 		return join('', $out);