| @@ -122,9 +122,9 @@ | ||
| 122 | 122 | // No use reflection method for performance, also this just a simple call. |
| 123 | 123 | // Manipulate the POST as raw data. |
| 124 | 124 | $_POST = $request->get_data(); |
| 125 | 125 | |
| 126 | - return $object->$method( $request ); | |
| 126 | + return call_user_func( array( $object, $method ), $request ); | |
| 127 | 127 | } else { |
| 128 | 128 | $this->log( sprintf( 'class not found when executing: %s %s', $class_name, $method ), self::INTERNAL_LOG ); |
| 129 | 129 | } |
| 130 | 130 | } |