Rename auto_request.tpl form action template variable

This commit is contained in:
Hypolite Petovan 2022-10-30 15:48:28 -04:00
parent c9d6a3f044
commit 3020dfbeeb
5 changed files with 5 additions and 5 deletions

View File

@ -143,7 +143,7 @@ function follow_content(App $a)
'$submit' => $submit, '$submit' => $submit,
'$cancel' => DI::l10n()->t('Cancel'), '$cancel' => DI::l10n()->t('Cancel'),
'$request' => $request, '$action' => $request,
'$name' => $contact['name'], '$name' => $contact['name'],
'$url' => $contact['url'], '$url' => $contact['url'],
'$zrl' => Profile::zrl($contact['url']), '$zrl' => Profile::zrl($contact['url']),

View File

@ -99,7 +99,7 @@ function unfollow_content(App $a)
'$zrl' => Contact::magicLinkByContact($contact), '$zrl' => Contact::magicLinkByContact($contact),
'$url_label' => DI::l10n()->t('Profile URL'), '$url_label' => DI::l10n()->t('Profile URL'),
'$myaddr' => $self['url'], '$myaddr' => $self['url'],
'$request' => $request, '$action' => $request,
'$keywords' => '', '$keywords' => '',
'$keywords_label'=> '' '$keywords_label'=> ''
]); ]);

View File

@ -127,7 +127,7 @@ class RemoteFollow extends BaseModule
'$submit' => $this->t('Submit Request'), '$submit' => $this->t('Submit Request'),
'$cancel' => $this->t('Cancel'), '$cancel' => $this->t('Cancel'),
'$request' => 'remote_follow/' . $this->parameters['profile'], '$action' => 'remote_follow/' . $this->parameters['profile'],
'$name' => $this->owner['name'], '$name' => $this->owner['name'],
'$myaddr' => Profile::getMyURL(), '$myaddr' => Profile::getMyURL(),
]); ]);

View File

@ -9,7 +9,7 @@
</p> </p>
{{/if}} {{/if}}
<form action="{{$request}}" method="post"> <form action="{{$action}}" method="post">
{{if $url}} {{if $url}}
<dl> <dl>
<dt>{{$url_label}}</dt> <dt>{{$url_label}}</dt>

View File

@ -9,7 +9,7 @@
</p> </p>
{{/if}} {{/if}}
<form action="{{$request}}" method="post"> <form action="{{$action}}" method="post">
{{if $url}} {{if $url}}
<dl> <dl>
<dt>{{$url_label}}</dt> <dt>{{$url_label}}</dt>