From: Domas Mituzas Date: Thu, 10 Feb 2005 14:13:55 +0000 (+0000) Subject: wfSetBufferResults no longer referenced, kill. X-Git-Tag: 1.5.0alpha1~745 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=commitdiff_plain;h=032738d2e24655d4cecd58f42c6caaf159db319f;p=lhc%2Fweb%2Fwiklou.git wfSetBufferResults no longer referenced, kill. --- diff --git a/includes/DatabaseFunctions.php b/includes/DatabaseFunctions.php index 7d9f035779..fd3c5eea03 100644 --- a/includes/DatabaseFunctions.php +++ b/includes/DatabaseFunctions.php @@ -52,24 +52,6 @@ function &wfGetDB( $db = DB_LAST ) { return $wgLoadBalancer->getConnection( $db ); } -/** - * Turns buffering of SQL result - * Sets on (true) or off (false). Default is "on" and it should not be changed - * without good reasons. - * - * @param $newstate - * @param $dbi - * @return mixed|NULL Returns the previous state. -*/ -function wfBufferSQLResults( $newstate, $dbi = DB_LAST ) { - $db =& wfGetDB( $dbi ); - if ( $db !== false ) { - return $db->setBufferResults( $newstate ); - } else { - return NULL; - } -} - /** * Turns on (false) or off (true) the automatic generation and sending * of a "we're sorry, but there has been a database error" page on