diff options
author | Stanislau Wolski <stanislau.wolski@gmail.com> | 2016-01-14 18:10:58 +0300 |
---|---|---|
committer | Stanislau Wolski <stanislau.wolski@gmail.com> | 2016-01-14 18:10:58 +0300 |
commit | 4a75329e2b743ece62d47439e8a1cfc1048e82cd (patch) | |
tree | 2b8f9d5f6754cc62000c40cd4401a22590d7d61c /codebase/base_connector.php | |
parent | 709f7d2b048d2ad548b5f4d5fba43759e8c00283 (diff) | |
parent | d6cc2827e356b4803d48bf66d1d95ddfb453343c (diff) | |
download | connector-php-4a75329e2b743ece62d47439e8a1cfc1048e82cd.zip connector-php-4a75329e2b743ece62d47439e8a1cfc1048e82cd.tar.gz connector-php-4a75329e2b743ece62d47439e8a1cfc1048e82cd.tar.bz2 |
Merge pull request #10 from slothfk/master
corrected live_update encoding
Diffstat (limited to 'codebase/base_connector.php')
-rwxr-xr-x | codebase/base_connector.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/codebase/base_connector.php b/codebase/base_connector.php index 4e033b2..01a42ce 100755 --- a/codebase/base_connector.php +++ b/codebase/base_connector.php @@ -700,6 +700,9 @@ class Connector { */ public function set_encoding($encoding){ $this->encoding=$encoding; + if ($this->live_update !== false) { + $this->live_update->set_encoding($this->encoding); + } } /*! enable or disable dynamic loading mode @@ -855,8 +858,9 @@ class Connector { 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)); - $this->live_update->set_event($this->event,$this->names["item_class"]); + $this->live_update = new $this->live_update_data_type($this->sql, $this->config, $this->request, $table,$url, array("connector" => $this)); + $this->live_update->set_event($this->event,$this->names["item_class"]); + $this->live_update->set_encoding($this->encoding); $this->event->attach("beforeOutput", Array($this->live_update, "version_output")); $this->event->attach("beforeFiltering", Array($this->live_update, "get_updates")); $this->event->attach("beforeProcessing", Array($this->live_update, "check_collision")); |