diff options
-rw-r--r-- | async.php | 4 | ||||
-rw-r--r-- | include/functions.php | 8 | ||||
-rw-r--r-- | index.php | 2 |
3 files changed, 1 insertions, 13 deletions
@@ -20,8 +20,6 @@ spl_autoload_register(function($classname) { require_once sprintf($classpath, $classname); }); -require_once 'include/functions.php'; - #=============================================================================== # Check if BigPipe should be disabled #=============================================================================== @@ -111,7 +109,7 @@ require_once 'include/pagelets.php'; <?php endif; if(isAsyncRequest()) { - $BUFFER = removeLineBreaksAndTabs(ob_get_clean()); + $BUFFER = ob_get_clean(); echo '<script>["Application","BigPipe"].forEach(function(name){window[name] = parent[name];});</script>'."\n"; echo '<script>Application.placeholderHTML('.json_encode($BUFFER).');</script>'."\n\n"; } diff --git a/include/functions.php b/include/functions.php deleted file mode 100644 index e920ef1..0000000 --- a/include/functions.php +++ /dev/null @@ -1,8 +0,0 @@ -<?php -#=============================================================================== -# Remove line breaks and tabs from a string -#=============================================================================== -function removeLineBreaksAndTabs($string) { - return str_replace(["\r", "\n", "\t"], NULL, $string); -} -?>
\ No newline at end of file @@ -9,8 +9,6 @@ spl_autoload_register(function($classname) { require_once sprintf($classpath, $classname); }); -require_once 'include/functions.php'; - #=============================================================================== # Check if BigPipe should be disabled #=============================================================================== |