aboutsummaryrefslogtreecommitdiffstats
path: root/include/classes
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2018-01-28 02:52:32 +0100
committerThomas Lange <code@nerdmind.de>2018-01-28 02:52:32 +0100
commitf48b94d0aaf8f7057b9f37152ae028b49c710f31 (patch)
tree224833ad9166ce656a18ab7735d6e7810624d4c0 /include/classes
parentfbe375107d96be9488b7072c8687a1acc3ba2fa6 (diff)
downloadbigpipe-f48b94d0aaf8f7057b9f37152ae028b49c710f31.tar.gz
bigpipe-f48b94d0aaf8f7057b9f37152ae028b49c710f31.tar.xz
bigpipe-f48b94d0aaf8f7057b9f37152ae028b49c710f31.zip
Replace function call "removeLineBreaksAndTabs" with "str_replace"
This commit replaces the function call of "removeLineBreaksAndTabs" from "Pagelet::flush()" with the direct call of the "str_replace" function. Therefore, you don't need to include the external function "removeLineBreaksAndTabs" (which was located outside the BigPipe namespace) into your project anymore.
Diffstat (limited to 'include/classes')
-rw-r--r--include/classes/BigPipe/Pagelet.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/classes/BigPipe/Pagelet.php b/include/classes/BigPipe/Pagelet.php
index 9e145fd..07b7d87 100644
--- a/include/classes/BigPipe/Pagelet.php
+++ b/include/classes/BigPipe/Pagelet.php
@@ -151,7 +151,7 @@ class Pagelet extends Item {
#===============================================================================
public function flush() {
if(BigPipe::enabled()) {
- $pageletHTML = removeLineBreaksAndTabs($this->getHTML());
+ $pageletHTML = str_replace(["\r", "\n", "\t"], '', $this->getHTML());
$pageletHTML = str_replace('--', '&#45;&#45;', $pageletHTML);
$pageletJSON = json_encode($this->getStructure());