Update Kirby and dependencies
This commit is contained in:
parent
07150a0011
commit
c7c5d615a4
451 changed files with 67540 additions and 63740 deletions
|
@ -11,11 +11,11 @@ define('DS', '/');
|
|||
$aliases = require_once __DIR__ . '/aliases.php';
|
||||
|
||||
spl_autoload_register(function ($class) use ($aliases) {
|
||||
$class = strtolower($class);
|
||||
$class = strtolower($class);
|
||||
|
||||
if (isset($aliases[$class]) === true) {
|
||||
class_alias($aliases[$class], $class);
|
||||
}
|
||||
if (isset($aliases[$class]) === true) {
|
||||
class_alias($aliases[$class], $class);
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
|
@ -24,13 +24,13 @@ spl_autoload_register(function ($class) use ($aliases) {
|
|||
$testDir = dirname(__DIR__) . '/tests';
|
||||
|
||||
if (is_dir($testDir) === true) {
|
||||
spl_autoload_register(function ($className) use ($testDir) {
|
||||
$path = str_replace('Kirby\\', '', $className);
|
||||
$path = str_replace('\\', '/', $path);
|
||||
$file = $testDir . '/' . $path . '.php';
|
||||
spl_autoload_register(function ($className) use ($testDir) {
|
||||
$path = str_replace('Kirby\\', '', $className);
|
||||
$path = str_replace('\\', '/', $path);
|
||||
$file = $testDir . '/' . $path . '.php';
|
||||
|
||||
if (file_exists($file)) {
|
||||
include $file;
|
||||
}
|
||||
});
|
||||
if (file_exists($file)) {
|
||||
include $file;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue