From: Mikael Nordfeldth Date: Sun, 18 Jan 2015 00:43:30 +0000 (+0100) Subject: A bit more readable code. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=371f4b48742e78bf4337c30c1e7aeb8ff6ec4eef;p=quix0rs-gnu-social.git A bit more readable code. --- diff --git a/lib/action.php b/lib/action.php index f3a125d3b5..fb71d3073f 100644 --- a/lib/action.php +++ b/lib/action.php @@ -1167,11 +1167,9 @@ class Action extends HTMLOutputter // lawsuit // 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. $notice = _('All %1$s content and data are available under the %2$s license.'); - $link = "" . - htmlspecialchars(common_config('license', 'title')) . - ""; + $link = sprintf('%2$s', + htmlspecialchars(common_config('license', 'url')), + htmlspecialchars(common_config('license', 'title'))); $this->raw(sprintf(htmlspecialchars($notice), htmlspecialchars(common_config('site', 'name')), $link));