diff options
author | Andrew Dolgov <[email protected]> | 2012-11-26 14:33:18 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-11-26 14:33:18 +0400 |
commit | cc85704f3cc798e9df7813ab9e2de955d7152ada (patch) | |
tree | ae3c76d63fd8bdb78e082c4be292b9090b55c272 /include/functions.php | |
parent | bf2611195f4f2f3e8f8f6c23dd27b024ce3d93d1 (diff) |
implement experimental article on-import data filters
Diffstat (limited to 'include/functions.php')
-rw-r--r-- | include/functions.php | 8 |
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"); |