Merge pull request #5039 from owncloud/lib-private-master-2

Public API OC6 - introduce lib/private
This commit is contained in:
Morris Jobke 2013-10-01 09:15:24 -07:00
commit 5ade595911
313 changed files with 10 additions and 10 deletions

View File

@ -73,10 +73,10 @@ class Autoloader {
}
} elseif (strpos($class, 'OC_') === 0) {
// first check for legacy classes if underscores are used
$paths[] = 'legacy/' . strtolower(str_replace('_', '/', substr($class, 3)) . '.php');
$paths[] = strtolower(str_replace('_', '/', substr($class, 3)) . '.php');
$paths[] = 'private/legacy/' . strtolower(str_replace('_', '/', substr($class, 3)) . '.php');
$paths[] = 'private/' . strtolower(str_replace('_', '/', substr($class, 3)) . '.php');
} elseif (strpos($class, 'OC\\') === 0) {
$paths[] = strtolower(str_replace('\\', '/', substr($class, 3)) . '.php');
$paths[] = 'private/' . strtolower(str_replace('\\', '/', substr($class, 3)) . '.php');
} elseif (strpos($class, 'OCP\\') === 0) {
$paths[] = 'public/' . strtolower(str_replace('\\', '/', substr($class, 4)) . '.php');
} elseif (strpos($class, 'OCA\\') === 0) {

View File

@ -164,7 +164,7 @@ class OC {
// set the right include path
set_include_path(
OC::$SERVERROOT . '/lib' . PATH_SEPARATOR .
OC::$SERVERROOT . '/lib/private' . PATH_SEPARATOR .
OC::$SERVERROOT . '/config' . PATH_SEPARATOR .
OC::$THIRDPARTYROOT . '/3rdparty' . PATH_SEPARATOR .
implode($paths, PATH_SEPARATOR) . PATH_SEPARATOR .

View File

@ -3,7 +3,7 @@
namespace OC\AppFramework\Utility;
// register 3rdparty autoloaders
require_once __DIR__ . '/../../../3rdparty/Pimple/Pimple.php';
require_once __DIR__ . '/../../../../3rdparty/Pimple/Pimple.php';
/**
* Class SimpleContainer

Some files were not shown because too many files have changed in this diff Show More