Fixed bug #10086: Core uses deprecated function t3lib_db->sql()
authorMartin Kutschker <martin.t.kutschker@blackbox.net>
Fri, 9 Jan 2009 21:16:50 +0000 (21:16 +0000)
committerMartin Kutschker <martin.t.kutschker@blackbox.net>
Fri, 9 Jan 2009 21:16:50 +0000 (21:16 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4674 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_fullsearch.php
typo3/sysext/cms/tslib/media/scripts/example_callfunction.php
typo3/sysext/sys_action/class.tx_sysaction.php

index 0241b2d..d604ddb 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+
+2008-01-09  Martin Kutschker  <masi@typo3.org>
+
+       * Fixed bug #10086: Core uses deprecated function t3lib_db->sql()
+
 2009-01-09  Oliver Hader  <oliver@typo3.org>
 
        * Fixed bug #10083: Constant styles.content.imgtext.separateRows is not defined
index 2508433..7bb51fb 100755 (executable)
@@ -230,7 +230,7 @@ class t3lib_fullsearch {
                                $qCount = $GLOBALS['TYPO3_DB']->SELECTquery('count(*)', $qGen->table, $qString.t3lib_BEfunc::deleteClause($qGen->table));
                                $qSelect = $qGen->getSelectQuery($qString);
 
-                               $res = @$GLOBALS['TYPO3_DB']->sql(TYPO3_db,$qCount);
+                               $res = @$GLOBALS['TYPO3_DB']->sql_query($qCount);
                                if (!$GLOBALS['TYPO3_DB']->sql_error()) {
                                        $dA = array();
                                        $dA['t2_data'] = serialize(array(
@@ -396,7 +396,7 @@ class t3lib_fullsearch {
                                $output.= $GLOBALS['SOBE']->doc->section('SQL query',$this->tableWrap(htmlspecialchars($qExplain)),0,1);
                }
 
-                               $res = @$GLOBALS['TYPO3_DB']->sql(TYPO3_db,$qExplain);
+                               $res = @$GLOBALS['TYPO3_DB']->sql_query($qExplain);
                                if ($GLOBALS['TYPO3_DB']->sql_error())  {
                                        $out.='<BR><strong>Error:</strong><BR><font color="red"><strong>'.$GLOBALS['TYPO3_DB']->sql_error().'</strong></font>';
                                        $output.= $GLOBALS['SOBE']->doc->section('SQL error',$out,0,1);
index 7dc4f57..1441b7f 100755 (executable)
@@ -157,7 +157,7 @@ class user_various  {
         * @access private
         */
        function selectThem($query)     {
-               $res = $GLOBALS['TYPO3_DB']->sql(TYPO3_db,$query);
+               $res = $GLOBALS['TYPO3_DB']->sql_query($query);
                $output=array();
                while($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res))       {
                        $output[]=$row['header'];
index 1f52fe7..4849d5b 100755 (executable)
@@ -185,7 +185,7 @@ class tx_sysaction extends mod_user_task {
                                                                $actionContent="";
        //              debug($sql_query);
                                                                $type = $sql_query["qC"]["search_query_makeQuery"];
-                                                               $res = $GLOBALS['TYPO3_DB']->sql(TYPO3_db,$sql_query["qSelect"]);
+                                                               $res = $GLOBALS['TYPO3_DB']->sql_query($sql_query["qSelect"]);
                                                                if (!$GLOBALS['TYPO3_DB']->sql_error()) {
                                                                        $fullsearch->formW=48;
                                                                        $cP=$fullsearch->getQueryResultCode($type,$res,$sql_query["qC"]["queryTable"]);