update kirby to v5 and add refresh cache panel view button
This commit is contained in:
commit
9a86d41254
466 changed files with 19960 additions and 10497 deletions
|
|
@ -14,6 +14,8 @@ use Kirby\Toolkit\Collection;
|
|||
* @link https://getkirby.com
|
||||
* @copyright Bastian Allgeier
|
||||
* @license https://opensource.org/licenses/MIT
|
||||
*
|
||||
* @extends \Kirby\Toolkit\Collection<\Kirby\Query\Segment>
|
||||
*/
|
||||
class Segments extends Collection
|
||||
{
|
||||
|
|
@ -37,7 +39,7 @@ class Segments extends Collection
|
|||
$segments,
|
||||
function ($segment) use (&$position) {
|
||||
// leave connectors as they are
|
||||
if (in_array($segment, ['.', '?.']) === true) {
|
||||
if (in_array($segment, ['.', '?.'], true) === true) {
|
||||
return $segment;
|
||||
}
|
||||
|
||||
|
|
@ -54,7 +56,7 @@ class Segments extends Collection
|
|||
/**
|
||||
* Splits the string of a segment chaing into an
|
||||
* array of segments as well as conenctors (`.` or `?.`)
|
||||
* @internal
|
||||
* @unstable
|
||||
*/
|
||||
public static function parse(string $string): array
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue