diff options
author | Stanislau Wolski <stanislau.wolski@gmail.com> | 2016-05-30 19:01:40 +0300 |
---|---|---|
committer | Stanislau Wolski <stanislau.wolski@gmail.com> | 2016-05-30 19:01:40 +0300 |
commit | 13a2331d171575666a506651ceb5db5556d6dfb3 (patch) | |
tree | 55eddbc760fa5f50a6ff4bd74d93e159e2bbfd87 /codebase/base_connector.php | |
parent | 709f7d2b048d2ad548b5f4d5fba43759e8c00283 (diff) | |
download | connector-php-13a2331d171575666a506651ceb5db5556d6dfb3.zip connector-php-13a2331d171575666a506651ceb5db5556d6dfb3.tar.gz connector-php-13a2331d171575666a506651ceb5db5556d6dfb3.tar.bz2 |
[fix] using live update with render_sql
Diffstat (limited to 'codebase/base_connector.php')
-rwxr-xr-x | codebase/base_connector.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/codebase/base_connector.php b/codebase/base_connector.php index 4e033b2..aa77491 100755 --- a/codebase/base_connector.php +++ b/codebase/base_connector.php @@ -854,8 +854,8 @@ class Connector { @param url url used for update notifications */ - public function enable_live_update($table, $url=false){ - $this->live_update = new $this->live_update_data_type($this->sql, $this->config, $this->request, $table,$url, array("connector" => $this)); + public function enable_live_update($table, $url=false, $origin_table = false){ + $this->live_update = new $this->live_update_data_type($this->sql, $this->config, $this->request, $table,$url, array("connector" => $this, "table" => $origin_table)); $this->live_update->set_event($this->event,$this->names["item_class"]); $this->event->attach("beforeOutput", Array($this->live_update, "version_output")); $this->event->attach("beforeFiltering", Array($this->live_update, "get_updates")); |