Skip to content
This repository has been archived by the owner on Jan 25, 2021. It is now read-only.

Commit

Permalink
Upgrade to 2.5.13
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianallgeier committed Jan 14, 2020
1 parent 7f6b0df commit 5ff6080
Show file tree
Hide file tree
Showing 688 changed files with 550 additions and 365 deletions.
Empty file modified kirby/.gitignore
100644 → 100755
Empty file.
5 changes: 2 additions & 3 deletions kirby/.travis.yml
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
language: php
sudo: false
php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
matrix:
fast_finish: true
Empty file modified kirby/bootstrap.php
100644 → 100755
Empty file.
Empty file modified kirby/branches/default.php
100644 → 100755
Empty file.
Empty file modified kirby/branches/multilang.php
100644 → 100755
Empty file.
Empty file modified kirby/branches/multilang/content.php
100644 → 100755
Empty file.
Empty file modified kirby/branches/multilang/field.php
100644 → 100755
Empty file.
Empty file modified kirby/branches/multilang/file.php
100644 → 100755
Empty file.
Empty file modified kirby/branches/multilang/language.php
100644 → 100755
Empty file.
Empty file modified kirby/branches/multilang/languages.php
100644 → 100755
Empty file.
Empty file modified kirby/branches/multilang/page.php
100644 → 100755
Empty file.
Empty file modified kirby/branches/multilang/site.php
100644 → 100755
Empty file.
Empty file modified kirby/classmap.php
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions kirby/composer.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
"files": ["composer.php"]
},
"require": {
"php": ">=5.6.0",
"php": ">=7.2.0",
"ext-mbstring": "*",
"ext-gd": "*",
"erusev/parsedown": "1.7.1",
"erusev/parsedown-extra": "0.7.1",
"michelf/php-smartypants": "1.8.1",
"getkirby/toolkit": "2.5.12",
"getkirby/toolkit": "2.5.13",
"filp/whoops": "2.1.14"
},
"archive": {
Expand Down
41 changes: 20 additions & 21 deletions kirby/composer.lock
100644 → 100755

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file modified kirby/composer.php
100644 → 100755
Empty file.
Empty file modified kirby/core/asset.php
100644 → 100755
Empty file.
Empty file modified kirby/core/avatar.php
100644 → 100755
Empty file.
Empty file modified kirby/core/children.php
100644 → 100755
Empty file.
Empty file modified kirby/core/content.php
100644 → 100755
Empty file.
Empty file modified kirby/core/field.php
100644 → 100755
Empty file.
Empty file modified kirby/core/file.php
100644 → 100755
Empty file.
Empty file modified kirby/core/files.php
100644 → 100755
Empty file.
Empty file modified kirby/core/kirbytag.php
100644 → 100755
Empty file.
Empty file modified kirby/core/kirbytext.php
100644 → 100755
Empty file.
Empty file modified kirby/core/page.php
100644 → 100755
Empty file.
Empty file modified kirby/core/pages.php
100644 → 100755
Empty file.
Empty file modified kirby/core/role.php
100644 → 100755
Empty file.
Empty file modified kirby/core/roles.php
100644 → 100755
Empty file.
Empty file modified kirby/core/site.php
100644 → 100755
Empty file.
Empty file modified kirby/core/user.php
100644 → 100755
Empty file.
Empty file modified kirby/core/users.php
100644 → 100755
Empty file.
Empty file modified kirby/extensions/methods.php
100644 → 100755
Empty file.
Empty file modified kirby/extensions/tags.php
100644 → 100755
Empty file.
Empty file modified kirby/helpers.php
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion kirby/kirby.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

class Kirby {

static public $version = '2.5.12';
static public $version = '2.5.13';
static public $instance;
static public $hooks = array();
static public $triggered = array();
Expand Down
Empty file modified kirby/kirby/component.php
100644 → 100755
Empty file.
Empty file modified kirby/kirby/component/css.php
100644 → 100755
Empty file.
Empty file modified kirby/kirby/component/js.php
100644 → 100755
Empty file.
Empty file modified kirby/kirby/component/markdown.php
100644 → 100755
Empty file.
Empty file modified kirby/kirby/component/response.php
100644 → 100755
Empty file.
Empty file modified kirby/kirby/component/smartypants.php
100644 → 100755
Empty file.
Empty file modified kirby/kirby/component/snippet.php
100644 → 100755
Empty file.
Empty file modified kirby/kirby/component/template.php
100644 → 100755
Empty file.
Empty file modified kirby/kirby/component/thumb.php
100644 → 100755
Empty file.
Empty file modified kirby/kirby/component/tinyurl.php
100644 → 100755
Empty file.
Empty file modified kirby/kirby/errorhandling.php
100644 → 100755
Empty file.
Empty file modified kirby/kirby/event.php
100644 → 100755
Empty file.
Empty file modified kirby/kirby/registry.php
100644 → 100755
Empty file.
Empty file modified kirby/kirby/registry/blueprint.php
100644 → 100755
Empty file.
Empty file modified kirby/kirby/registry/component.php
100644 → 100755
Empty file.
Empty file modified kirby/kirby/registry/controller.php
100644 → 100755
Empty file.
Empty file modified kirby/kirby/registry/entry.php
100644 → 100755
Empty file.
Empty file modified kirby/kirby/registry/field.php
100644 → 100755
Empty file.
Empty file modified kirby/kirby/registry/hook.php
100644 → 100755
Empty file.
Empty file modified kirby/kirby/registry/method.php
100644 → 100755
Empty file.
Empty file modified kirby/kirby/registry/model.php
100644 → 100755
Empty file.
Empty file modified kirby/kirby/registry/option.php
100644 → 100755
Empty file.
Empty file modified kirby/kirby/registry/role.php
100644 → 100755
Empty file.
Empty file modified kirby/kirby/registry/route.php
100644 → 100755
Empty file.
Empty file modified kirby/kirby/registry/snippet.php
100644 → 100755
Empty file.
Empty file modified kirby/kirby/registry/tag.php
100644 → 100755
Empty file.
Empty file modified kirby/kirby/registry/template.php
100644 → 100755
Empty file.
Empty file modified kirby/kirby/registry/widget.php
100644 → 100755
Empty file.
Empty file modified kirby/kirby/request.php
100644 → 100755
Empty file.
Empty file modified kirby/kirby/request/params.php
100644 → 100755
Empty file.
Empty file modified kirby/kirby/request/path.php
100644 → 100755
Empty file.
Empty file modified kirby/kirby/request/query.php
100644 → 100755
Empty file.
Empty file modified kirby/kirby/roots.php
100644 → 100755
Empty file.
Empty file modified kirby/kirby/traits/image.php
100644 → 100755
Empty file.
Empty file modified kirby/kirby/urls.php
100644 → 100755
Empty file.
Empty file modified kirby/lib/pageextension.php
100644 → 100755
Empty file.
Empty file modified kirby/lib/structure.php
100644 → 100755
Empty file.
Empty file modified kirby/license.md
100644 → 100755
Empty file.
Empty file modified kirby/phpunit.xml
100644 → 100755
Empty file.
Empty file modified kirby/readme.md
100644 → 100755
Empty file.
Empty file modified kirby/system.php
100644 → 100755
Empty file.
30 changes: 13 additions & 17 deletions kirby/test/RoleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class RoleTest extends KirbyTestCase {

protected $role;

public function setUp() {
public function setUp(): void {
$this->role = new Role(array(
'id' => 'testrole',
'name' => 'Test role',
Expand Down Expand Up @@ -72,35 +72,31 @@ public function testPermission() {
$this->assertEquals('This user should fail.', $result->message());
}

/**
* @expectedException Error
* @expectedExceptionMessage Invalid event.
*/
public function testPermissionInvalidEvent() {
$this->expectException('Error');
$this->expectExceptionMessage('Invalid event');

$this->role->permission(new Obj());
}

/**
* @expectedException Error
* @expectedExceptionMessage Permission panel.user.error of role testrole is invalid.
*/
public function testPermissionValueError() {
$this->expectException('Error');
$this->expectExceptionMessage('Permission panel.user.error of role testrole is invalid.');

$this->role->permission('panel.user.error');
}

/**
* @expectedException Error
* @expectedExceptionMessage Invalid user.
*/
public function testPermissionCallbackError() {
$this->expectException('Error');
$this->expectExceptionMessage('Invalid user.');

$this->role->permission('panel.user.update', 'someotheruser');
}

/**
* @expectedException Error
* @expectedExceptionMessage Permission panel.user.update of role testrole must return a boolean or error string.
*/
public function testPermissionCallbackReturnError() {
$this->expectException('Error');
$this->expectExceptionMessage('Permission panel.user.update of role testrole must return a boolean or error string.');

$this->role->permission('panel.user.update', 'returnerror');
}

Expand Down
Empty file modified kirby/test/UsersTest.php
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/content/1-a/a.txt
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/content/1-a/test.js
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/content/2-b/b.txt
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/content/error/error.txt
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/content/home/home.txt
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/content/site.txt
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/content/tests/field-name-test/test.txt
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/content/tests/file-extension-case-test/a.JSON
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/content/tests/file-extension-case-test/b.json
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/gist/expected.html
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/gist/test.txt
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/image-with-alt/expected.html
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/image-with-alt/test.txt
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/image-with-caption/expected.html
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/image-with-caption/test.txt
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/image-with-link-popup/expected.html
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/image-with-link-popup/test.txt
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/image-with-link/expected.html
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/image-with-link/test.txt
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/image/expected.html
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/image/test.txt
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/input-with-placeholder/expected.html
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/input-with-placeholder/test.txt
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/link-with-class/expected.html
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/link-with-class/test.txt
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/link-with-link-as-text/expected.html
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/link-with-link-as-text/test.txt
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/link-with-popup/expected.html
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/link-with-popup/test.txt
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/link-with-rel/expected.html
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/link-with-rel/test.txt
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/link-with-target/expected.html
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/link-with-target/test.txt
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/link-without-text/expected.html
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/link-without-text/test.txt
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/link/expected.html
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/link/test.txt
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/multiline-parenthesis/expected.html
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/multiline-parenthesis/test.txt
100644 → 100755
Empty file.
Empty file.
Empty file modified kirby/test/etc/kirbytext/non-matching-parenthesises/test.txt
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/script-tag/expected.html
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/script-tag/test.txt
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/tag-in-parenthesis/expected.html
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/tag-in-parenthesis/test.txt
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/tel/expected.html
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/tel/test.txt
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/twitter/expected.html
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/twitter/test.txt
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/vimeo/expected.html
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/vimeo/test.txt
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/youtube/expected.html
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/kirbytext/youtube/test.txt
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/site/accounts/test.php
100644 → 100755
Empty file.
Empty file modified kirby/test/etc/site/cache/.gitkeep
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion kirby/vendor/autoload.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

// autoload.php @generated by Composer

require_once __DIR__ . '/composer' . '/autoload_real.php';
require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInitf5a857c9e4c52bed0abd021c7daaa7b8::getLoader();
60 changes: 46 additions & 14 deletions kirby/vendor/composer/ClassLoader.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ class ClassLoader

private $useIncludePath = false;
private $classMap = array();

private $classMapAuthoritative = false;
private $missingClasses = array();
private $apcuPrefix;

public function getPrefixes()
{
Expand Down Expand Up @@ -271,6 +272,26 @@ public function isClassMapAuthoritative()
return $this->classMapAuthoritative;
}

/**
* APCu prefix to use to cache found/not-found classes, if the extension is enabled.
*
* @param string|null $apcuPrefix
*/
public function setApcuPrefix($apcuPrefix)
{
$this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null;
}

/**
* The APCu prefix in use, or null if APCu caching is not enabled.
*
* @return string|null
*/
public function getApcuPrefix()
{
return $this->apcuPrefix;
}

/**
* Registers this instance as an autoloader.
*
Expand Down Expand Up @@ -313,29 +334,34 @@ public function loadClass($class)
*/
public function findFile($class)
{
// work around for PHP 5.3.0 - 5.3.2 https://bugs.php.net/50731
if ('\\' == $class[0]) {
$class = substr($class, 1);
}

// class map lookup
if (isset($this->classMap[$class])) {
return $this->classMap[$class];
}
if ($this->classMapAuthoritative) {
if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
return false;
}
if (null !== $this->apcuPrefix) {
$file = apcu_fetch($this->apcuPrefix.$class, $hit);
if ($hit) {
return $file;
}
}

$file = $this->findFileWithExtension($class, '.php');

// Search for Hack files if we are running on HHVM
if ($file === null && defined('HHVM_VERSION')) {
if (false === $file && defined('HHVM_VERSION')) {
$file = $this->findFileWithExtension($class, '.hh');
}

if ($file === null) {
if (null !== $this->apcuPrefix) {
apcu_add($this->apcuPrefix.$class, $file);
}

if (false === $file) {
// Remember that this class does not exist.
return $this->classMap[$class] = false;
$this->missingClasses[$class] = true;
}

return $file;
Expand All @@ -348,10 +374,14 @@ private function findFileWithExtension($class, $ext)

$first = $class[0];
if (isset($this->prefixLengthsPsr4[$first])) {
foreach ($this->prefixLengthsPsr4[$first] as $prefix => $length) {
if (0 === strpos($class, $prefix)) {
foreach ($this->prefixDirsPsr4[$prefix] as $dir) {
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) {
$subPath = $class;
while (false !== $lastPos = strrpos($subPath, '\\')) {
$subPath = substr($subPath, 0, $lastPos);
$search = $subPath . '\\';
if (isset($this->prefixDirsPsr4[$search])) {
$pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
foreach ($this->prefixDirsPsr4[$search] as $dir) {
if (file_exists($file = $dir . $pathEnd)) {
return $file;
}
}
Expand Down Expand Up @@ -399,6 +429,8 @@ private function findFileWithExtension($class, $ext)
if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
return $file;
}

return false;
}
}

Expand Down
2 changes: 1 addition & 1 deletion kirby/vendor/composer/LICENSE
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

Copyright (c) 2016 Nils Adermann, Jordi Boggiano
Copyright (c) Nils Adermann, Jordi Boggiano

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Empty file modified kirby/vendor/composer/autoload_classmap.php
100644 → 100755
Empty file.
Empty file modified kirby/vendor/composer/autoload_files.php
100644 → 100755
Empty file.
Empty file modified kirby/vendor/composer/autoload_namespaces.php
100644 → 100755
Empty file.
Empty file modified kirby/vendor/composer/autoload_psr4.php
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion kirby/vendor/composer/autoload_real.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static function getLoader()
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
spl_autoload_unregister(array('ComposerAutoloaderInitf5a857c9e4c52bed0abd021c7daaa7b8', 'loadClassLoader'));

$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION');
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
if ($useStaticLoader) {
require_once __DIR__ . '/autoload_static.php';

Expand Down
Empty file modified kirby/vendor/composer/autoload_static.php
100644 → 100755
Empty file.
Loading

0 comments on commit 5ff6080

Please sign in to comment.