summaryrefslogtreecommitdiff
path: root/include/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/functions.php')
-rw-r--r--include/functions.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php
index 55333ccd6..1c3f4cbb9 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -7,11 +7,19 @@
function __autoload($class) {
$class_file = str_replace("_", "/", strtolower(basename($class)));
+ $file = dirname(__FILE__)."/../plugins/$class_file.php";
+
+ if (file_exists($file)) {
+ require $file;
+ return;
+ }
+
$file = dirname(__FILE__)."/../classes/$class_file.php";
if (file_exists($file)) {
require $file;
}
+
}
mb_internal_encoding("UTF-8");