Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c78dfd2

Browse files
committedDec 15, 2011
Fix #13684: undefined variable in admin/index.php
Variable $t_version_suffix was referenced without initialization. It is now set following the same logic as in html_footer(). Commit also includes whitespace corrections.
1 parent 74dc549 commit c78dfd2

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed
 

‎admin/index.php

+9-4
Original file line numberDiff line numberDiff line change
@@ -56,21 +56,26 @@ function print_info_row( $p_description, $p_value ) {
5656
<tr>
5757
<td class="form-title" width="30%" colspan="2"><?php echo lang_get( 'install_information' ) ?></td>
5858
</tr>
59-
<?php
60-
print_info_row( lang_get( 'mantis_version' ), MANTIS_VERSION, ( $t_version_suffix ? " $t_version_suffix" : '' ) );
59+
<?php
60+
if( ON == config_get( 'show_version' ) ) {
61+
$t_version_suffix = config_get_global( 'version_suffix' );
62+
} else {
63+
$t_version_suffix = '';
64+
}
65+
print_info_row( lang_get( 'mantis_version' ), MANTIS_VERSION, $t_version_suffix );
6166
print_info_row( 'php_version', phpversion());
6267
?>
6368
<tr>
6469
<td class="form-title" width="30%" colspan="2"><?php echo lang_get( 'database_information' ) ?></td>
6570
</tr>
66-
<?php
71+
<?php
6772
print_info_row( lang_get( 'schema_version' ), config_get( 'database_version' ) );
6873
print_info_row( 'adodb_version', $g_db->Version() );
6974
?>
7075
<tr>
7176
<td class="form-title" width="30%" colspan="2"><?php echo lang_get( 'path_information' ) ?></td>
7277
</tr>
73-
<?php
78+
<?php
7479
print_info_row( lang_get( 'site_path' ), config_get( 'absolute_path' ) );
7580
print_info_row( lang_get( 'core_path' ), config_get( 'core_path' ) );
7681
print_info_row( lang_get( 'plugin_path' ), config_get( 'plugin_path' ) );

0 commit comments

Comments
 (0)
Please sign in to comment.