From bd3cf8cda838810e19aad11d3c02df3827fe61a2 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 17 Jun 2012 08:31:34 -0400 Subject: [PATCH 1/5] Clarify possible return values --- libraries/File.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/File.class.php b/libraries/File.class.php index bcdcb1e56e..98c1f08f8e 100644 --- a/libraries/File.class.php +++ b/libraries/File.class.php @@ -159,7 +159,8 @@ class PMA_File /** * Gets file content * - * @return string binary file content + * @return mixed the binary file content as a string, + * or false if no content * * @access public */ From dbc7758f12c78b9c0242e004e4e20c73e5f907ef Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 17 Jun 2012 08:39:31 -0400 Subject: [PATCH 2/5] PMA_generateHtmlTabs() becomes PMA_getHtmlTabs() --- libraries/Menu.class.php | 2 +- libraries/TableSearch.class.php | 2 +- libraries/common.lib.php | 2 +- querywindow.php | 2 +- test/theme.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libraries/Menu.class.php b/libraries/Menu.class.php index f1b192929e..ef56ec2f74 100644 --- a/libraries/Menu.class.php +++ b/libraries/Menu.class.php @@ -103,7 +103,7 @@ class PMA_Menu } else { $tabs = $this->_getServerTabs(); } - return PMA_generateHtmlTabs($tabs, $url_params); + return PMA_getHtmlTabs($tabs, $url_params); } /** diff --git a/libraries/TableSearch.class.php b/libraries/TableSearch.class.php index 14624009aa..b8b55a4086 100644 --- a/libraries/TableSearch.class.php +++ b/libraries/TableSearch.class.php @@ -1068,7 +1068,7 @@ EOT; $url_params['db'] = $this->_db; $url_params['table'] = $this->_table; - $html_output .= PMA_generateHtmlTabs( + $html_output .= PMA_getHtmlTabs( $this->_getSubTabs(), $url_params, 'topmenu2' ); $html_output .= $this->_getFormTag($goto); diff --git a/libraries/common.lib.php b/libraries/common.lib.php index 77bb491e4e..bf70f974b0 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -1786,7 +1786,7 @@ function PMA_generateHtmlTab($tab, $url_params = array()) * * @return string html-code for tab-navigation */ -function PMA_generateHtmlTabs($tabs, $url_params, $menu_id = 'topmenu') +function PMA_getHtmlTabs($tabs, $url_params, $menu_id = 'topmenu') { $tab_navigation = '