[BUGFIX] callApi function not using response parameter 33/26733/2
authorNicole Cordes <cordes@cps-it.de>
Fri, 10 Jan 2014 11:30:37 +0000 (12:30 +0100)
committerNicole Cordes <typo3@cordes.co>
Mon, 13 Jan 2014 08:26:46 +0000 (09:26 +0100)
Use response parameter as reference as otherwise there isn't any
information.

Change-Id: I30f187b37a200893a4310bf1691fa09db485a8c6
Reviewed-on: https://review.typo3.org/26733
Reviewed-by: Nicole Cordes
Tested-by: Nicole Cordes
Classes/Domain/Repository/TweetRepository.php

index 66ee35e..5a3f582 100644 (file)
@@ -279,7 +279,7 @@ class Tx_WtTwitter_Domain_Repository_TweetRepository {
         * @param NULL $response
         * @return array
         */
-       protected function callApi($url, $method, $parameter, $response) {
+       protected function callApi($url, $method, $parameter, &$response) {
                $tweets = Tx_WtTwitter_Twitter_Api::processRequest(
                        $this->extensionConfiguration['oauth_token'],
                        $this->extensionConfiguration['oauth_token_secret'],