|
4 | 4 | * BreezeAjax |
5 | 5 | * |
6 | 6 | * @package Breeze mod |
7 | | - * @version 1.0.11 |
| 7 | + * @version 1.0.14 |
8 | 8 | * @author Jessica González <suki@missallsunday.com> |
9 | 9 | * @copyright Copyright (c) 2011 - 2018 Jessica González |
10 | 10 | * @license //www.mozilla.org/MPL/MPL-1.1.html |
@@ -103,7 +103,7 @@ public function call() |
103 | 103 | if (isset($call[$data->get('sa')])) |
104 | 104 | { |
105 | 105 | // This is somehow ugly but its faster. |
106 | | - $this->$call[$data->get('sa')](); |
| 106 | + $this->{$call[$data->get('sa')]}(); |
107 | 107 |
|
108 | 108 | // Send the response back to the browser |
109 | 109 | $this->returnResponse(); |
@@ -447,7 +447,7 @@ public function delete() |
447 | 447 | call_integration_hook('integrate_breeze_before_delete', array(&$type, &$id, &$profileOwner, &$poster)); |
448 | 448 |
|
449 | 449 | // Do the query dance! |
450 | | - $this->_query->$typeCall($id, $profileOwner); |
| 450 | + $this->_query->{$typeCall}($id, $profileOwner); |
451 | 451 |
|
452 | 452 | // Tell everyone what just happened here... |
453 | 453 | call_integration_hook('integrate_breeze_after_delete', array($type, $id, $profileOwner, $poster)); |
@@ -681,7 +681,7 @@ public function multiNoti() |
681 | 681 | $viewed = $do == 'read' ? 1 : 0; |
682 | 682 |
|
683 | 683 | // $set the "viewed" var |
684 | | - $this->_query->$call($idNoti, $user, $viewed); |
| 684 | + $this->_query->{$call}($idNoti, $user, $viewed); |
685 | 685 |
|
686 | 686 | return $this->setResponse(array( |
687 | 687 | 'type' => 'success', |
@@ -733,7 +733,7 @@ protected function fetchStatus() |
733 | 733 | // Get the right call to the DB |
734 | 734 | $call = $comingFrom == 'profile' ? 'getStatusByProfile' : 'getStatusByUser'; |
735 | 735 |
|
736 | | - $data = $this->_query->$call($fetch, $maxIndex, $start); |
| 736 | + $data = $this->_query->{$call}($fetch, $maxIndex, $start); |
737 | 737 |
|
738 | 738 | if (!empty($data['data'])) |
739 | 739 | { |
|
0 commit comments