A bit more readable code.

This commit is contained in:
Mikael Nordfeldth 2015-01-18 01:43:30 +01:00
parent 060878157e
commit 371f4b4874

View File

@ -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));