Skip to content

Commit df7cbba

Browse files
afborabastianallgeier
authored andcommitted
Add missing roots
1 parent 080231a commit df7cbba

File tree

6 files changed

+26
-1
lines changed

6 files changed

+26
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Title: i18n:rules
2+
3+
----
4+
5+
Intro: Returns the root of the i18n:rules (core rules) folder.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Title: i18n:translations
2+
3+
----
4+
5+
Intro: Returns the root of the i18n:translations (core translations) folder.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Title: i18n
2+
3+
----
4+
5+
Intro: Returns the root of the i18n (core languages) folder.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Title: languages
2+
3+
----
4+
5+
Intro: Returns the root of the languages folder.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Title: panel
2+
3+
----
4+
5+
Intro: Returns the root of the panel folder.

site/models/reference-root.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function template(): Template
3636
public function title(): Field
3737
{
3838
return parent::title()->value(
39-
'$kirby->root(\'' . $this->slug() . '\')'
39+
'$kirby->root(\'' . parent::title() . '\')'
4040
);
4141
}
4242
}

0 commit comments

Comments
 (0)