From 7b7b2daefc9dbdaf82f3dbff63f986c160bde342 Mon Sep 17 00:00:00 2001 From: Kenzaburo Ito Date: Fri, 11 Jan 2002 02:12:10 +0000 Subject: [PATCH] Removed print_mantis_version(). Moved it into print_foooter(). git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@624 f5dc347c-c33d-0410-90a0-b07cc1902cb9 --- ChangeLog | 3 ++- core_html_API.php | 19 ++++++------------- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/ChangeLog b/ChangeLog index cbad2647d7..0c7efa620b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -26,7 +26,8 @@ Mantis * Removed site_settings pages. * Removed unused cookie variables. * Removed sql_to_unix_time() function. Unecessary with removal of TIMESTAMPS. - * Removed menu_inc.php file and related variable. Moved this into print_menu() + * Removed menu_inc.php file and related variable. Moved this into print_menu(). + * Removed print_mantis_version(). Moved it into print_foooter(). * Renamed g_store_file_to to g_file_upload_method. 12.01.2001 - 0.16.1 diff --git a/core_html_API.php b/core_html_API.php index 94eec272e7..8651d90d45 100644 --- a/core_html_API.php +++ b/core_html_API.php @@ -5,7 +5,7 @@ # See the files README and LICENSE for details ########################################################################### - # Core HTML API ### + # Core HTML API ########################################################################### # These functions control the display of each page @@ -160,7 +160,8 @@ function print_bottom_page( $p_page ) { # (11) Prints the bottom of page information function print_footer( $p_file ) { global $g_string_cookie_val, $g_webmaster_email, - $g_menu_include_file, $g_show_footer_menu; + $g_menu_include_file, $g_show_footer_menu, + $g_mantis_version, $g_show_version; if (isset($g_string_cookie_val)&&!empty($g_string_cookie_val)) { if ( $g_show_footer_menu ) { @@ -172,7 +173,9 @@ function print_footer( $p_file ) { PRINT "

"; PRINT "


"; - print_mantis_version(); + if ( ON == $g_show_version ) { + PRINT "Mantis $g_mantis_version"; + } PRINT "
Copyright (C) 2000, 2001
"; PRINT "
$g_webmaster_email
"; } @@ -251,16 +254,6 @@ function print_source_link( $p_file ) { } } # -------------------- - # checks to see whether we need to be displaying the version number - # used in print_footer() - function print_mantis_version() { - global $g_mantis_version, $g_show_version; - - if ( ON == $g_show_version ) { - PRINT "Mantis $g_mantis_version"; - } - } - # -------------------- # print the hr function print_hr( $p_hr_size, $p_hr_width ) { PRINT "
";