aboutsummaryrefslogtreecommitdiffstats
path: root/include/pagelets.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/pagelets.php')
-rw-r--r--include/pagelets.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/pagelets.php b/include/pagelets.php
index 62c3ed9..f6734e2 100644
--- a/include/pagelets.php
+++ b/include/pagelets.php
@@ -5,6 +5,14 @@
$DEBUGGING = TRUE;
#===============================================================================
+# Autoload register for classes
+#===============================================================================
+spl_autoload_register(function($classname) {
+ $classname = str_replace('\\', '/', $classname);
+ require "classes/{$classname}.php";
+});
+
+#===============================================================================
# Check if BigPipe should be disabled
#===============================================================================
if(isset($_GET['bigpipe']) AND $_GET['bigpipe'] === '0') {