Fixed bug #7264: Generating extension import list takes very long (credits Michiel...
authorIngo Renner <ingo.renner@typo3.org>
Tue, 4 Aug 2009 11:37:39 +0000 (11:37 +0000)
committerIngo Renner <ingo.renner@typo3.org>
Tue, 4 Aug 2009 11:37:39 +0000 (11:37 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5757 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/mod/tools/em/class.em_xmlhandler.php

index d10fe2d..012f4ab 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-08-03  Ingo Renner  <ingo@typo3.org>
+
+       * Fixed bug #7264: Generating extension import list takes very long (credits Michiel Roos)
+
 2009-08-03  Benjamin Mack <benni@typo3.org>
 
        * Fixed #11628: Frontend Editing does not work with an iframe
index 3f8d68c..3a375bc 100644 (file)
@@ -122,11 +122,8 @@ class SC_mod_tools_em_xmlhandler {
                        $idx++;
                }
 
-                       // Fetch count
-               $count = $GLOBALS['TYPO3_DB']->exec_SELECTcountRows('*', 'cache_extensions', $where);
-               $this->matchingCount = $count;
-
                $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'cache_extensions', $where, '', $order, $offset.','.$limit);
+               $this->matchingCount = $GLOBALS['TYPO3_DB']->sql_num_rows($res);
                $this->extensionsXML = array();
                while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res))      {
                        $row['category'] = $this->catArr[$row['category']];