summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/eventsource.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-03-12 18:28:46 +0100
committerMorris Jobke <hey@morrisjobke.de>2018-03-21 14:36:34 +0100
commit78211a58e642b3b4363e9ca21aff398661260b01 (patch)
treec1476566c124e65a6fd201b5d0076a9adc6e180e /lib/private/legacy/eventsource.php
parentc8340ace5c22b3a3cf2132b2efbe91104aab04e9 (diff)
downloadnextcloud-server-78211a58e642b3b4363e9ca21aff398661260b01.tar.gz
nextcloud-server-78211a58e642b3b4363e9ca21aff398661260b01.zip
Remove unused methods of OC_Json
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/legacy/eventsource.php')
-rw-r--r--lib/private/legacy/eventsource.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/legacy/eventsource.php b/lib/private/legacy/eventsource.php
index 1a8061c0ed2..1e68dd24af0 100644
--- a/lib/private/legacy/eventsource.php
+++ b/lib/private/legacy/eventsource.php
@@ -110,13 +110,13 @@ class OC_EventSource implements \OCP\IEventSource {
}
if ($this->fallback) {
$response = '<script type="text/javascript">window.parent.OC.EventSource.fallBackCallBack('
- . $this->fallBackId . ',"' . $type . '",' . OCP\JSON::encode($data) . ')</script>' . PHP_EOL;
+ . $this->fallBackId . ',"' . $type . '",' . OC_JSON::encode($data) . ')</script>' . PHP_EOL;
echo $response;
} else {
if ($type) {
echo 'event: ' . $type . PHP_EOL;
}
- echo 'data: ' . OCP\JSON::encode($data) . PHP_EOL;
+ echo 'data: ' . OC_JSON::encode($data) . PHP_EOL;
}
echo PHP_EOL;
flush();