Skip to content

Commit

Permalink
Fix #16810: $s_os in custom_strings_inc.php partially ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
atrol committed Jan 12, 2014
1 parent 7694a38 commit 56b33e8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion account_prof_edit_page.php
Expand Up @@ -107,7 +107,7 @@
</tr>
<tr class="row-2">
<th class="category">
<span class="required">*</span><?php echo lang_get( 'operating_system' ) ?>
<span class="required">*</span><?php echo lang_get( 'os' ) ?>
</th>
<td>
<input type="text" name="os" size="32" maxlength="32" value="<?php echo string_attribute( $v_os ) ?>" />
Expand Down
2 changes: 1 addition & 1 deletion account_prof_menu_page.php
Expand Up @@ -102,7 +102,7 @@
<span class="label-style"></span>
</div>
<div class="field-container">
<label for="os" class="required"><span><?php echo lang_get( 'operating_system' ) ?></span></label>
<label for="os" class="required"><span><?php echo lang_get( 'os' ) ?></span></label>
<span class="input"><input id="os" type="text" name="os" size="32" maxlength="32" /></span>
<span class="label-style"></span>
</div>
Expand Down
4 changes: 2 additions & 2 deletions core/profile_api.php
Expand Up @@ -66,7 +66,7 @@ function profile_create( $p_user_id, $p_platform, $p_os, $p_os_build, $p_descrip

# os cannot be blank
if( is_blank( $p_os ) ) {
error_parameters( lang_get( 'operating_system' ) );
error_parameters( lang_get( 'os' ) );
trigger_error( ERROR_EMPTY_FIELD, ERROR );
}

Expand Down Expand Up @@ -137,7 +137,7 @@ function profile_update( $p_user_id, $p_profile_id, $p_platform, $p_os, $p_os_bu

# os cannot be blank
if( is_blank( $p_os ) ) {
error_parameters( lang_get( 'operating_system' ) );
error_parameters( lang_get( 'os' ) );
trigger_error( ERROR_EMPTY_FIELD, ERROR );
}

Expand Down
1 change: 0 additions & 1 deletion lang/strings_english.txt
Expand Up @@ -400,7 +400,6 @@ $s_profile_deleted_msg = 'Deleted profile...';
$s_edit_profile_title = 'Edit Profile';
$s_platform = 'Platform';
$s_platform_label = 'Platform:';
$s_operating_system = 'Operating System';
$s_additional_description = 'Additional Description';
$s_update_profile_button = 'Update Profile';

Expand Down

0 comments on commit 56b33e8

Please sign in to comment.