From cc85704f3cc798e9df7813ab9e2de955d7152ada Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 26 Nov 2012 14:33:18 +0400 Subject: implement experimental article on-import data filters --- include/functions.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/functions.php') 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"); -- cgit v1.2.3