diff options
author | Thomas Lange <code@nerdmind.de> | 2018-02-03 20:16:21 +0100 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2018-02-03 20:16:21 +0100 |
commit | ca52e765e9dbd9407346b574cada9a93720e535d (patch) | |
tree | 20e750483738938e1d993b9f067c1c26aa8f8379 /index.php | |
parent | 7601f94af929f909c29da522d9a4b37cecad0a7c (diff) | |
download | bigpipe-ca52e765e9dbd9407346b574cada9a93720e535d.tar.gz bigpipe-ca52e765e9dbd9407346b574cada9a93720e535d.tar.xz bigpipe-ca52e765e9dbd9407346b574cada9a93720e535d.zip |
Move check if BigPipe should be disabled into the pagelets.php
This commit moves the if condition, which checks if the pipelining mode of BigPipe should be disabled, directly into the pagelets.php to reduce duplicate code within index.php and async.php.
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -9,14 +9,6 @@ spl_autoload_register(function($classname) { require_once sprintf($classpath, $classname); }); -#=============================================================================== -# Check if BigPipe should be disabled -#=============================================================================== -if(isset($_GET['bigpipe']) AND (int) $_GET['bigpipe'] === 0) { - // You can also check for search spiders and disable the pipeline - BigPipe\BigPipe::enabled(FALSE); -} - // Outsourced to avoid duplicate code in index.php and async.php require_once 'include/pagelets.php'; ?> |