From 42c80841c846610be280218d53fcde06b0f0063b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Fri, 6 Dec 2013 09:45:27 +0100 Subject: [change] we now use Full-Text RSS 3.1, thank you so much @fivefilters --- inc/3rdparty/libraries/simplepie/autoloader.php | 86 +++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 inc/3rdparty/libraries/simplepie/autoloader.php (limited to 'inc/3rdparty/libraries/simplepie/autoloader.php') diff --git a/inc/3rdparty/libraries/simplepie/autoloader.php b/inc/3rdparty/libraries/simplepie/autoloader.php new file mode 100644 index 00000000..c16a8f8b --- /dev/null +++ b/inc/3rdparty/libraries/simplepie/autoloader.php @@ -0,0 +1,86 @@ +path = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'library'; + } + + /** + * Autoloader + * + * @param string $class The name of the class to attempt to load. + */ + public function autoload($class) + { + // Only load the class if it starts with "SimplePie" + if (strpos($class, 'SimplePie') !== 0) + { + return; + } + + $filename = $this->path . DIRECTORY_SEPARATOR . str_replace('_', DIRECTORY_SEPARATOR, $class) . '.php'; + include $filename; + } +} \ No newline at end of file -- cgit v1.2.3