diff --git a/doc/config.rst b/doc/config.rst index 30b6613bea..5b9657c8c7 100644 --- a/doc/config.rst +++ b/doc/config.rst @@ -1550,10 +1550,9 @@ Browse mode :type: boolean :default: false - Defines whether a user should be displayed a "Show all" button in - browse mode or not in all cases. By default it is shown only on small - tables (less than 5 × :config:option:`$cfg['MaxRows']` rows) to avoid - performance issues while getting too many rows. + Defines whether a user should be displayed a "Show all" button in browse + mode or not in all cases. By default it is shown only on small tables (less + than 500 rows) to avoid performance issues while getting too many rows. .. config:option:: $cfg['MaxRows'] diff --git a/libraries/DisplayResults.class.php b/libraries/DisplayResults.class.php index 6278abe7fd..7ca196adf3 100644 --- a/libraries/DisplayResults.class.php +++ b/libraries/DisplayResults.class.php @@ -666,7 +666,7 @@ class PMA_DisplayResults // Display the "Show all" button if allowed if (($this->__get('num_rows') < $this->__get('unlim_num_rows')) && ($GLOBALS['cfg']['ShowAll'] - || ($GLOBALS['cfg']['MaxRows'] * 5 >= $this->__get('unlim_num_rows'))) + || ($this->__get('unlim_num_rows') <= 500)) ) { $table_navigation_html .= $this->_getShowAllButtonForTableNavigation( @@ -908,9 +908,9 @@ class PMA_DisplayResults . __('Number of rows:') . ' ' . '