diff options
author | Brice Maron <brice@bmaron.net> | 2012-06-14 21:16:59 +0000 |
---|---|---|
committer | Brice Maron <brice@bmaron.net> | 2012-06-14 21:16:59 +0000 |
commit | 4753cc3ebde9867ab4deb1979fb4231b0c847426 (patch) | |
tree | c6944e947bc84c8716b57b7e2b06ef51efccb3db /3rdparty/Dropbox/autoload.php | |
parent | 6da5a2fdd4e8a19ab993b4a1f7de7e45b8922a16 (diff) | |
parent | f3b30e4658c4dde82b56b458c672fa5edcba5d6b (diff) | |
download | nextcloud-server-4753cc3ebde9867ab4deb1979fb4231b0c847426.tar.gz nextcloud-server-4753cc3ebde9867ab4deb1979fb4231b0c847426.zip |
Merge branch 'master' into multi_app_dir
Conflicts:
apps/bookmarks/ajax/addBookmark.php
config/config.sample.php
lib/app.php
remote.php
Diffstat (limited to '3rdparty/Dropbox/autoload.php')
-rw-r--r-- | 3rdparty/Dropbox/autoload.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/3rdparty/Dropbox/autoload.php b/3rdparty/Dropbox/autoload.php new file mode 100644 index 00000000000..5388ea6334a --- /dev/null +++ b/3rdparty/Dropbox/autoload.php @@ -0,0 +1,29 @@ +<?php + +/** + * This file registers a new autoload function using spl_autoload_register. + * + * @package Dropbox + * @copyright Copyright (C) 2010 Rooftop Solutions. All rights reserved. + * @author Evert Pot (http://www.rooftopsolutions.nl/) + * @license http://code.google.com/p/dropbox-php/wiki/License MIT + */ + +/** + * Autoloader function + * + * @param $className string + * @return void + */ +function Dropbox_autoload($className) { + + if(strpos($className,'Dropbox_')===0) { + + include dirname(__FILE__) . '/' . str_replace('_','/',substr($className,8)) . '.php'; + + } + +} + +spl_autoload_register('Dropbox_autoload'); + |