Skip to content

Commit c7b6f04

Browse files
authored
[5.x] Revert config values in forms (#13632)
1 parent b046758 commit c7b6f04

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

src/Forms/Form.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
use Statamic\Events\FormDeleting;
1818
use Statamic\Events\FormSaved;
1919
use Statamic\Events\FormSaving;
20-
use Statamic\Facades\Antlers;
2120
use Statamic\Facades\Blueprint;
2221
use Statamic\Facades\File;
2322
use Statamic\Facades\Form as FormFacade;
@@ -269,12 +268,6 @@ public function delete()
269268
public function hydrate()
270269
{
271270
$contents = YAML::parse(File::get($this->path()));
272-
$variables = ['config' => config()->all()];
273-
array_walk_recursive($contents, function (&$value) use ($variables) {
274-
if (is_string($value)) {
275-
$value = (string) Antlers::parse($value, $variables);
276-
}
277-
});
278271

279272
$methods = [
280273
'title',

0 commit comments

Comments
 (0)