diff options
author | Thomas Lange <code@nerdmind.de> | 2018-02-03 20:21:13 +0100 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2018-02-03 20:21:13 +0100 |
commit | 9b9ff136acf374434f10f1b0b8d18fdc6d17de43 (patch) | |
tree | 4402c3e57b9416e3496ad4194d09cd3ca48c3d3b /index.php | |
parent | ca52e765e9dbd9407346b574cada9a93720e535d (diff) | |
download | bigpipe-9b9ff136acf374434f10f1b0b8d18fdc6d17de43.tar.gz bigpipe-9b9ff136acf374434f10f1b0b8d18fdc6d17de43.tar.xz bigpipe-9b9ff136acf374434f10f1b0b8d18fdc6d17de43.zip |
Move autoloader for classes into pagelets.php
This commit moves the "spl_autoload_register" function 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 | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -1,15 +1,4 @@ <?php -#=============================================================================== -# Include classes and functions -#=============================================================================== -spl_autoload_register(function($classname) { - $classpath = 'include/classes/%s.php'; - $classname = str_replace('\\', '/', $classname); - - require_once sprintf($classpath, $classname); -}); - -// Outsourced to avoid duplicate code in index.php and async.php require_once 'include/pagelets.php'; ?> <!DOCTYPE html> |