forked from GNUsocial/gnu-social
A bit more readable code.
This commit is contained in:
parent
060878157e
commit
371f4b4874
@ -1167,11 +1167,9 @@ class Action extends HTMLOutputter // lawsuit
|
|||||||
// TRANS: license message in footer.
|
// TRANS: license message in footer.
|
||||||
// TRANS: %1$s is the site name, %2$s is a link to the license URL, with a licence name set in configuration.
|
// TRANS: %1$s is the site name, %2$s is a link to the license URL, with a licence name set in configuration.
|
||||||
$notice = _('All %1$s content and data are available under the %2$s license.');
|
$notice = _('All %1$s content and data are available under the %2$s license.');
|
||||||
$link = "<a class=\"license\" rel=\"external license\" href=\"" .
|
$link = sprintf('<a class="license" rel="external license" href="%1$s">%2$s</a>',
|
||||||
htmlspecialchars(common_config('license', 'url')) .
|
htmlspecialchars(common_config('license', 'url')),
|
||||||
"\">" .
|
htmlspecialchars(common_config('license', 'title')));
|
||||||
htmlspecialchars(common_config('license', 'title')) .
|
|
||||||
"</a>";
|
|
||||||
$this->raw(sprintf(htmlspecialchars($notice),
|
$this->raw(sprintf(htmlspecialchars($notice),
|
||||||
htmlspecialchars(common_config('site', 'name')),
|
htmlspecialchars(common_config('site', 'name')),
|
||||||
$link));
|
$link));
|
||||||
|
Loading…
Reference in New Issue
Block a user