[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_4_0RC2-656-g8262e36

Michal Čihař nijel at users.sourceforge.net
Wed May 4 10:06:30 CEST 2011


The branch, master has been updated
       via  8262e36f3d5bdf3252aa28c8660f545c3e1071f2 (commit)
      from  73c57b099e8b2d2c99fcb4d0888dcc40f4dd366a (commit)


- Log -----------------------------------------------------------------
commit 8262e36f3d5bdf3252aa28c8660f545c3e1071f2
Author: Martín Palombo <martin-palombo at launchpad>
Date:   Wed May 4 10:05:15 2011 +0200

    Do not load all tables into memory, we need only slice.
    
    Reported with patch at
    https://bugs.launchpad.net/ubuntu/+source/phpmyadmin/+bug/754647

-----------------------------------------------------------------------

Summary of changes:
 navigation.php |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/navigation.php b/navigation.php
index 167c060..ea77489 100644
--- a/navigation.php
+++ b/navigation.php
@@ -246,8 +246,8 @@ $element_counter = 0;
 
 
 if ($GLOBALS['cfg']['LeftFrameLight'] && strlen($GLOBALS['db'])) {
-    $table_list = PMA_getTableList($GLOBALS['db']);
-    $table_count = count($table_list);
+    $table_list = PMA_getTableList($GLOBALS['db'], null, $tpos, $cfg['MaxTableList']);
+    $table_count = PMA_getTableCount($GLOBALS['db']);
 
     // show selected databasename as link to DefaultTabDatabase-page
     // with table count in ()
@@ -284,7 +284,6 @@ if ($GLOBALS['cfg']['LeftFrameLight'] && strlen($GLOBALS['db'])) {
      * user can find a navigator to page thru all tables.
      *
      */
-    $table_list = array_slice($table_list, $tpos, $cfg['MaxTableList']);
     if (! empty($table_list)) {
         // upper table list paginator
         if (count($table_list) <= $GLOBALS['cfg']['MaxTableList'] && $table_count > $GLOBALS['cfg']['MaxTableList']) {


hooks/post-receive
-- 
phpMyAdmin




More information about the Git mailing list