* Add missing table name which is used by "SHOW INDEX FROM" queries in \(part of...
authorMichael Stucki <michael.stucki@typo3.org>
Tue, 5 Feb 2008 00:09:20 +0000 (00:09 +0000)
committerMichael Stucki <michael.stucki@typo3.org>
Tue, 5 Feb 2008 00:09:20 +0000 (00:09 +0000)
  Moving new parameter in between the two existing, which should be fine since the function exists only since yesterday...

git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3068 709f56b5-9817-0410-a4d7-c38de5d9e867

t3lib/class.t3lib_db.php

index 65dcc55..c22134b 100755 (executable)
@@ -231,7 +231,7 @@ class t3lib_DB {
                        $this->debug('exec_SELECTquery');
                }
                if ($this->explainOutput) {
                        $this->debug('exec_SELECTquery');
                }
                if ($this->explainOutput) {
-                       $this->explain($query, $this->sql_num_rows($res));
+                       $this->explain($query, $from_table, $this->sql_num_rows($res));
                }
 
                return $res;
                }
 
                return $res;
@@ -1147,10 +1147,11 @@ class t3lib_DB {
         * TODO: Feature is not DBAL-compliant
         *
         * @param       string          SQL query
         * TODO: Feature is not DBAL-compliant
         *
         * @param       string          SQL query
+        * @param       string          Table(s) from which to select. This is what comes right after "FROM ...". Required value.
         * @param       integer         Number of resulting rows
         * @return      boolean         True if explain was run, false otherwise
         */
         * @param       integer         Number of resulting rows
         * @return      boolean         True if explain was run, false otherwise
         */
-       protected function explain($query,$row_count)   {
+       protected function explain($query,$from_table,$row_count)       {
 
                if ((int)$this->explainOutput==1 || ((int)$this->explainOutput==2 && t3lib_div::cmpIP(t3lib_div::getIndpEnv('REMOTE_ADDR'), $GLOBALS['TYPO3_CONF_VARS']['SYS']['devIPmask']))) {
                        $explainMode = 1;       // raw HTML output
 
                if ((int)$this->explainOutput==1 || ((int)$this->explainOutput==2 && t3lib_div::cmpIP(t3lib_div::getIndpEnv('REMOTE_ADDR'), $GLOBALS['TYPO3_CONF_VARS']['SYS']['devIPmask']))) {
                        $explainMode = 1;       // raw HTML output